pieces library Null safety

Classes

Piece
PieceType