Put in a sleep timer for the game loop