public static bool Lives(this Cell cell, ISet <Cell> cells) { var neighbors = cell.GetNeighbors(cells).Count(); return(neighbors == 3 || neighbors == 2); }