private void updateNumbers(Point pos) {
        if( probabilities[pos.x][pos.y]==-1 ){
            probabilities[pos.x][pos.y] = 0;
            if( map[pos.x][pos.y] != 0 )
                numbers.add(new Point(pos.x,pos.y));
            else{
                for(int k=pos.x-1; k<=pos.x+1; k++)
                    for(int l=pos.y-1; l<=pos.y+1; l++)
                        if( k>=0 && l>=0 && k<8 && l<9 )
                            updateNumbers(new Point(k,l));
            }
        }
    }