Refactor aliveNeighbours in terms of count function
Remove unused writeCell function