Move loop out of Game class