Implemented PieceType type checking
Implemented PieceType type checking