added method deletePiece()