Made the game loop better.