static void Main(string[] args) { GridCell[][] grid = GridFactory.InitializeGrid(); var cellToCount = ValidateCellToTrackInput(grid[0].Length, grid.Length); var cellCoordinates = new int[] { int.Parse(cellToCount[1]), int.Parse(cellToCount[0]) }; var generationsCount = int.Parse(cellToCount[2]); var cellToTrack = GetCellToTrack(grid, cellCoordinates); //PrintGrid(grid); for (int i = 0; i < generationsCount; i++) { CalculateGeneration(grid); } Console.WriteLine(); Console.WriteLine("------------------------------------------"); Console.WriteLine(); Console.WriteLine($"Number of generations cell with coordinates " + $"{cellCoordinates[1]}, {cellCoordinates[0]} stayed green: {cellToTrack.BeenGreenCount}"); }