added PieceType enumeration