Corrected wrong condition if (target.getTag() != target.getTag()) to if (target.getTag() != source.getTag())