Implement Piece related classes.