public Dictionary <int, int> GetSolvedCellData() { Dictionary <int, int> solvedCells = new Dictionary <int, int>(); for (int i = 0; i < GridMath.TotalNumberOfCells; i++) { Cell cell = cells[i]; if (cell.IsSolved()) { solvedCells.Add(i, cell.PossibleNumbers.First()); } } return(solvedCells); }