Fixed outer game loop.