Add addPiece method