func handleGameEvents(c chan struct{}, g *agario.Game) { for { g.RunOnce(false) for g.RunOnce(true) { } c <- struct{}{} } }