Added game state tracker variable; this should fix issue #10