fixed game.end