private int addToShow(int rowIndex, int colIndex, Integer index, int[][] array){
        field[rowIndex][colIndex].show();
        for (int i = rowIndex - 1; i <= rowIndex + 1; i++) {
            for (int j = colIndex - 1; j <= colIndex + 1; j++) {
                if (checkIndex(i, j)) {
                    if (field[i][j].getCellType() == CellType.Index)
                        field[i][j].show();
                    else if (field[i][j].getCellType() == CellType.Empty && !field[i][j].isVisible()) {
                        field[i][j].show();
                        array[index][0] = i;
                        array[index][1] = j;
                        index++;
                    }
                }
            }
        }
        return index;
    }