added an additional check on the gameStatus of the robot