added check if gameData is valid