@Override
public void actionPerformed(ActionEvent e) {
super.actionPerformed(e);
if (userObject instanceof SubCell) {
SubCell subCell = (SubCell) userObject;
if (subCell != null) {
CellPosition oldPosition = subCell.getPosition();
Sample sample = subCell.getSample();
Cell parent = subCell.getParent();
parent.removeChildrenForMove(oldPosition);
parent.addChildren(cellPosition, sample);
}
} else if (userObject instanceof Cell) {
Cell cell = (Cell) userObject;