neigbours detection almost done. needs some refinment