Create the game loop