Improve the eternal loop in game.