public Board crearTablero(Percept p) {
        Board tablero = new Board(size);

        for (int a = 0; a < size; a++) {
            for (int b = 0; b < size; b++) {
                if (((String) p.getAttribute(a + ":" + b + ":" + Squares.COLOR)).equals(Squares.SPACE)) {
                    if (((String) p.getAttribute(a + ":" + b + ":" + Squares.LEFT)).equals(Squares.TRUE)) {
                        tablero.values[a][b] |= Board.LEFT;
                    }
                    if (((String) p.getAttribute(a + ":" + b + ":" + Squares.TOP)).equals(Squares.TRUE)) {
                        tablero.values[a][b] |= Board.TOP;
                    }
                    if (((String) p.getAttribute(a + ":" + b + ":" + Squares.RIGHT)).equals(Squares.TRUE)) {
                        tablero.values[a][b] |= Board.RIGHT;
                    }
                    if (((String) p.getAttribute(a + ":" + b + ":" + Squares.BOTTOM)).equals(Squares.TRUE)) {
                        tablero.values[a][b] |= Board.BOTTOM;
                    }
                } else {
                    if (((String) p.getAttribute(a + ":" + b + ":" + Squares.WHITE)).equals(Squares.WHITE)) {
                        tablero.values[a][b] = Board.WHITE;
                    } else {
                        tablero.values[a][b] = 15;
                    }
                }
            }
        }
        return tablero;
    }