Added checks in game state for illegal moves.