Add findNeighbor and handle deleting paths