public void update() {
        for (int i = 0; i < b.getBoard().length; i++) {
            for (int j = 0; j < b.getBoard()[i].length; j++) {
                panelBoard[i][j].removeAll();
                if (b.getBoard()[i][j] == SEEDS.BLACK) {
                    setPicture("Black", i, j);
                }
                if (b.getBoard()[i][j] == SEEDS.WHITE) {
                    setPicture("White", i, j);
                }
                if (b.getBoard()[i][j] == SEEDS.EMPTY) {
                    setPicture("Green", i, j);
                }
                if (b.doFlip(i, j , false)) {
                    System.out.println("row : " + i + "   col : " + j);
                    picture = createImageIcon("./legalSlot.png");
                    JLabel picLabel = new JLabel((picture));
                    panelBoard[i][j].add(picLabel);
                }
            }
        }
        int slotsLeft = b.chkWinner();

        if (slotsLeft == 0){
            if (wCount > bCount){
                GUIConsole.display("The winner is : Player2 (White)");
            }else if(wCount < bCount){
                GUIConsole.display("The winner is : Player1 (Black)");
            }else{
                GUIConsole.display("Draw .... dan tan tan");
            }
        }
        slotsPanel.updateUI();
    }