renamed TilePiece class to Piece