pieceCheck added