functioning display, turns out countNeighbours is broken