public Window(String name) {
        ar = new int[3][3];
        initComponents();

        gridPanel.setOpaque(false);
        scoreBoard.setOpaque(false);

        startBtn.setOpaque(false);
        startBtn.setContentAreaFilled(false);
        b00.setOpaque(false);
        b00.setContentAreaFilled(false);
        b01.setOpaque(false);
        b01.setContentAreaFilled(false);
        b02.setOpaque(false);
        b02.setContentAreaFilled(false);
        b10.setOpaque(false);
        b10.setContentAreaFilled(false);
        b11.setOpaque(false);
        b11.setContentAreaFilled(false);
        b12.setOpaque(false);
        b12.setContentAreaFilled(false);
        b20.setOpaque(false);
        b20.setContentAreaFilled(false);
        b21.setOpaque(false);
        b21.setContentAreaFilled(false);
        b22.setOpaque(false);
        b22.setContentAreaFilled(false);
        quitBtn.setOpaque(false);
        quitBtn.setContentAreaFilled(false);

        backBtn.setOpaque(false);
        backBtn.setContentAreaFilled(false);

        buttons = new JButton[3][3];
        buttons[0][0] = b00;
        buttons[0][1] = b01;
        buttons[0][2] = b02;
        buttons[1][0] = b10;
        buttons[1][1] = b11;
        buttons[1][2] = b12;
        buttons[2][0] = b20;
        buttons[2][1] = b21;
        buttons[2][2] = b22;

        int userScore = DBController.getSPUserWinCount(name);
        int comScore = DBController.getSPComWinCount(name);
        
        
        
        if (session % 2 == 0) {
            prompt = false;
//            respond();
            mark(ar, 1, 1);
            if (win() == 5) {
                wonLbl.setText("You lost!");
                int count = Integer.parseInt(computerLabel.getText());
                computerLabel.setText((count + 1) + "");

                for (int i = 0; i < 3; i++) {
                    for (JButton b : buttons[i]) {
                        b.setEnabled(false);
                    }
                }
                return;
            } else if (win() == -1) {

                wonLbl.setText("It is a draw!");
                int count = Integer.parseInt(tiesLabel.getText());
                tiesLabel.setText((count + 1) + "");
                for (int i = 0; i < 3; i++) {
                    for (JButton b : buttons[i]) {
                        b.setEnabled(false);
                    }
                }
                return;
            }
        }

//        while ((winner = win()) == 0) {
//            prompt = true;
//            System.out.println("Enter coordinate : ");
//            for (int i = 0; i < 2; i++) {
//                pair[i] = input.nextInt();
//            }
//            mark(ar, pair[0], pair[1]);
//            printArray(ar);
//            prompt = false;
//            
//            System.out.println("Conputer :");
//            printArray(ar);
//        }
    }