public void tradePokemon()
	{
		tWin=new TradeWindow();

		while(!CONNECTED)
		{

		}

		while(CONNECTED)
		{
			repaint();
			try
			{
				Thread.sleep(10);
			}
			catch(Exception ignored){}
			manageTime();
			tWin.tradeLogic();
		}
	}