private void generateCellValue(int rowIndex, int colIndex) {
        if (!(field[rowIndex][colIndex].getCellType() == CellType.Bomb)) {
            int roundBombsCount = 0;
            for (int i = rowIndex - 1; i <= rowIndex + 1; i++) {
                if (i >= 0 && i < height) {
                    for (int j = colIndex - 1; j <= colIndex + 1; j++) {
                        if (j >= 0 && j < wight) {
                            if (field[i][j].getCellType() == CellType.Bomb) roundBombsCount++;
                        }
                    }
                }
            }
            if (roundBombsCount > 0) {
                field[rowIndex][colIndex].setValue(String.valueOf(roundBombsCount));
            }
        }
    }