Implement a "better" game loop.