TicTacToe()
    {
        window.setSize(300,300);
        window.setDefaultCloseOperation(window.EXIT_ON_CLOSE);
        window.setLayout(new GridLayout(3,3));
        for(int i = 0; i < 9; i++) {
        	buttons[i] = new JButton("");
        	window.add(buttons[i]);
        	buttons[i].addActionListener(this);
        }
        window.setVisible(true);
    }