implement countLiveNeighbours, a bit of tidying -> seems to work!