private int heuristica(SquareAlex[][] b){
        int count =0;
        for(int i=0; i<boardSize; i++){
            for(int j=0; j<boardSize; j++){
                if(b[i][j].COLOR!=null){
                    if(b[i][j].COLOR.equals("Mine")) count++;
                }
            }
        }
        return count;
    }