Find neighbors code