I don't want to use remove in this code
chessPane.getChildren().removeAll(piece[0][chessPane.getRowIndex(piece[0][6].getImageView())-2].getImageView(), piece[0][chessPane.getRowIndex(piece[0][6].getImageView()) - 1].getImageView());
anyone can provide a better solution to delete this node?