private int CountAliveNeighbourCells(int x, int y) { aliveNeighbours = 0; if (config.aliveBorders) { copy.MooreVisit(x, y, false, visitAliveBorders); } else { copy.MooreVisit(x, y, true, visitDeadBorders); } return(aliveNeighbours); }