Fixed game thread crashing after one game.