moveAndDropSimilarNeigh function