private void updateEdges(Percept p) { // Cuenta el numero de lineas no coloreadas para cada cuadrito.
        int n = 0, c;
        for (int i = 0; i < boardSize; i++) {
            for (int j = 0; j < boardSize; j++) {
                c = 0;
                if (p.getAttribute(i + ":" + j + ":" + Squares.LEFT).equals(Squares.FALSE)) c++;
                if (p.getAttribute(i + ":" + j + ":" + Squares.TOP).equals(Squares.FALSE)) c++;
                if (p.getAttribute(i + ":" + j + ":" + Squares.BOTTOM).equals(Squares.FALSE)) c++;
                if (p.getAttribute(i + ":" + j + ":" + Squares.RIGHT).equals(Squares.FALSE)) c++;
                nodes[n] = c;
                n++;
            }
        }
        countOptions();
    }