~ Expose validatePiece function.