Work on game loop.