Fixing isLegalSquare() implementations.