public void setupGUI()
   	{
   		JFrame jf = new JFrame("--TRON--");
   		jf.setSize(550, 550);
		jf.setLayout(new GridLayout(1,1));
		jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		jf.setLocationRelativeTo(null);
		jf.setResizable(false);
		this.setLayout(null);
		Container cp = jf.getContentPane();

		for(int i = 0; i < x.length-1; i++)
		{
			x[i] = 24;
			y[i] = 49;
			map[y[i]][x[i]] = 1;
		}
		for(int i = 0; i < x1.length-1; i++)
		{
			x1[i] = 24;
			y1[i] = 0;
			map[y1[i]][x1[i]] = 2;
			dir1 = 2;
		}

		jf.addKeyListener(this);
		cp.add(this);
		jf.setVisible(true);
   	}