Minor tweaks.  Mostly style.  Also clear gamestate queue after scanning for quit.