private void SetEmptyCellsValues(IBoard board) { ICell[,] boardCells = board.Cells; for (var row = 0; row < board.Rows; row++) { for (int col = 0; col < board.Cols; col++) { ICell currentCell = boardCells[row, col]; if (currentCell.Content.ContentType == ContentType.Empty) { currentCell.Content.Value = board.CalculateNumberOfSurroundingBombs(row, col); } } } }