private void createInterface() {
        boolean b = true;
        for (int i = 0; i < model.getTabellone().length; i++) {
            for (int j = 0; j < model.getTabellone()[i].length; j++) {
                Cell cell = new Cell(i, j);
                if (b) {
                    cell.setImage(whiteCell.getImage());
                } else {
                    cell.setImage(blackCell.getImage());
                }
                b = !b;
                cell.setBorder(null);
                ImageIcon icon = null;
                if (model.getTabellone()[i][j] != 0) {
                    if (model.getTabellone()[i][j] == 1) {
                        icon = blackDama;
                    }
                    if (model.getTabellone()[i][j] == 2) {
                        icon = whiteDama;
                    }
                    if (model.getTabellone()[i][j] == 3) {
                        icon = blackDamone;
                    }
                    if (model.getTabellone()[i][j] == 4) {
                        icon = whiteDamone;
                    }
                    Pedina button = new Pedina(icon, this);
                    cell.add(button);
                }
                cell.addActionListener(this);
                pannello.add(cell);
            }
            b = !b;
        }
    }