made Piece into a superclass