Made countLivingNeighbours private