Bug in pointHasNeighbours function has been fixed.