basics of the isMovingThroughPieces method