Fixed game loop.