extracted isLegalGameBoard(gb) from IsLegalGameState(gs)