check the state of the game before running cheat codes