added method for Piece