public static int getHighestLevel(Pokemon party[], Pokemon pc[])
	{
		int highest=0;

        for (Pokemon aParty : party) {
            if (aParty != null) {
                if (aParty.level > highest)
                    highest = aParty.level;
            } else
                break;
        }

        for (Pokemon aPc : pc) {
            if (aPc != null) {
                if (aPc.level > highest)
                    highest = aPc.level;
            } else
                return highest;
        }

		return highest;
	}