@Test
    public void testProbabilityWhenNumbersAlredyHaveTheirBombsUncovered() {
        try {
            int[][] map ={{ 1, 9,-1,-1,-1,-1, 9, 2, 9},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1},
                {-1,-1,-1, 9, 1,-1,-1,-1,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1},
                { 9, 9,-1,-1,-1,-1,-1,-1,-1},
                { 3, 9,-1,-1,-1,-1,-1, 1, 1},
                {-1, 2, 9,-1,-1,-1,-1,-1, 9}};
            double[][] result ={{  0,  1,0.5,0.5,0.5,0.5,  1,  0,  1},
                {  0,  0,0.5,  0,  0,  0,  0,  0,  0},
                {0.5,0.5,0.5,  1,  0,  0,0.5,0.5,0.5},
                {0.5,0.5,0.5,  0,  0,  0,0.5,0.5,0.5},
                {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5},
                {  1,  1,0.5,0.5,0.5,0.5,  0,  0,  0},
                {  0,  1,  0,0.5,0.5,0.5,  0,  0,  0},
                {  0,  0,  1,0.5,0.5,0.5,  0,  0,  1}};
            
            Analizer a = new Analizer( );
            for( int i=0; i<8; i++ ) for( int j=0; j<9; j++ )
                if( map[i][j]!=-1 )
                    a.update( new Point(i,j), map );
            double[][] p = a.findProbabilities();
            
            assertEquals( new Point(1,0), a.bestMove().get(0));
            for( int i=0; i<8; i++ ) for( int j=0; j<9; j++ )
                assertEquals( result[i][j], p[i][j], 0.01);
        } catch (GameHasEnded ex) {
            fail( "Game Must not have ended" );
        }
    }