pieceType must be checked of pieces not of squares