Set up the game update loop.