void special_case() {
        if (i == 3) {

            String c1 = box1.getText();
            String c2 = box2.getText();
            String c3 = box3.getText();
            String c4 = box4.getText();
            String c5 = box5.getText();
            String c6 = box6.getText();
            String c7 = box7.getText();
            String c8 = box8.getText();
            String c9 = box9.getText();
            if (((c7.equals("X")) || (c9.equals("X"))) && (c2.equals("X")) && (c5.equals("O"))) {
                Random choice = new Random();
                int box = choice.nextInt((2)) + 1;
                if (box == 1) {
                    box1.setText("O");
                    b1 = 1;
                    i++;
                } else {
                    box3.setText("O");
                    b3 = 1;
                    i++;
                }
            } else if ((c1.equals("X") || (c7.equals("X"))) && (c6.equals("X")) && (c5.equals("O"))) {
                Random choice = new Random();
                int box = choice.nextInt((2)) + 1;
                if (box == 1) {
                    box3.setText("O");
                    b3 = 1;
                    i++;
                } else {
                    box9.setText("O");
                    b9 = 1;
                    i++;
                }
            } else if (((c3.equals("X")) || (c1.equals("X"))) && (c8.equals("X")) && (c5.equals("O"))) {
                Random choice = new Random();
                int box = choice.nextInt((2)) + 1;
                if (box == 1) {
                    box7.setText("O");
                    b7 = 1;
                    i++;
                } else {
                    box9.setText("O");
                    b9 = 1;
                    i++;
                }
            } else if ((c9.equals("X") || (c3.equals("X"))) && (c4.equals("X")) && (c5.equals("O"))) {
                Random choice = new Random();
                int box = choice.nextInt((2)) + 1;
                if (box == 1) {
                    box7.setText("O");
                    b7 = 1;
                    i++;
                } else {
                    box1.setText("O");
                    b1 = 1;
                    i++;
                }
            }
        }
    }