Neighbours function working