added a common game state for master and gamer mode to reduce code redundancy