structured the main game chain/loop/finish