Practice writing a game loop.