@Test
    public void testProbabilityWhenManyBombsInMap() {
        try {
            int[][] map ={{ 9,-1,-1,-1,-1,-1,-1,-1,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1, 9},
                {-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, 9,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1},
                {-1,-1,-1,-1,-1,-1,-1,-1,-1}};
            double[][] result ={{1.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,0.5,0.5,0.5,0.5,  1},
                {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5},
                {0.5,0.5,1.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,0.5,  1,0.5},
                {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5},
                {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5},
                {0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5}};
            
            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(0,1), 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" );
        }
    }