public GoAiGame()
	{

		super("Go");	// name of the top of the board
		groups = new ArrayList<GroupAi>();
		board = new ImageIcon("go.png");// puts the board as an image icon
		whitePass = false;
		blackPass = false;
		JPanel panel = new JPanel(); // new jpanel and setting the size and putting it to the jframe
		panel.setPreferredSize(new Dimension(720, 720));
		add(panel, BorderLayout.NORTH);
		image = new BufferedImage(720, 720, BufferedImage.TYPE_INT_RGB);
		addMouseListener(this);// sets a mouselistener to the jframe
		addWindowListener(this);
		setSize(720, 720);	// sets the size of jframe
		setVisible(true);// shows frame
		setResizable(false);// makes it not resizable
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// exits the program when the x is clicked
		setIgnoreRepaint(true);     // doesnt repaint the board
		addMouseMotionListener(this);	// adds mouse motion listener to the screen
		territories = new ArrayList<TerritoryAi>();
		ko = new ArrayList<int[][]>();
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();	// gets screen size and put
		// the frame in the middle
		setLocation((screen.width - 720) / 2, (screen.height - 720) / 2);

		squares = new Square[9][9];	// double array of a 9 by 9 squares
		blackScore = 0;
		whiteScore = 6.5;

		// goes through and actually places the squares on the board
		for (int i = 0; i < squares.length; i++)
		{
			for (int j = 0; j < squares[i].length; j++)
			{

				squares[i][j] = new Square(i, j, null);

			}

		}
	
	}