public static void run(RobotController myRC)
	{
		rc = myRC;
		RobotType t = rc.getType();

		try
		{
			if (t == RobotType.SOLDIER)
			{
				Soldier.soldierCode(rc);
			}
			else if(t == RobotType.HQ)
			{
				HQ.hqCode(rc);
			}
			else if(t == RobotType.GENERATOR || t == RobotType.SUPPLIER)
			{
				Supplier.supplierCode(rc);
			}
			else
			{
				while(true)
				{
					rc.yield();
				}
			}
		}
		catch (Exception e)
		{
			System.out.println("caught exception before it killed us:");
			e.printStackTrace();
		}
	}