double[][] findProbabilities( ) {
        totalOfCombinations = 0;
        ocurrencesOfMines = new double[8][9];
        for( int i=0; i<8; i++ )
            System.arraycopy(probabilities[i], 0, ocurrencesOfMines[i], 0, 9);
        
        totalOfCombinations = calculateCombinations();
        
        for( int i=0; i<8; i++ ) for( int j=0; j<9; j++ )
            if( ocurrencesOfMines[i][j] == 0 )
                probabilities[i][j] = 0;
            else if( ocurrencesOfMines[i][j] == -1 )
                probabilities[i][j] = 0.5;
            else if( probabilities[i][j]==-1 )
                probabilities[i][j] = ocurrencesOfMines[i][j]/totalOfCombinations;
        
        return probabilities;
    }