checked/debugged if the find_neigh fucntion is correct