checking for neighborhood implemented