Removed generateAllNeighbours