public static void checkSubstitute(int index)
	{
		System.out.println("Substitute detected");

		if(Mechanics.hasSubstitute[index])
		{
			if(Mechanics.substituteHealth[index]<=0)
			{
				Mechanics.substituteHealth[index]=0;
				Mechanics.hasSubstitute[index]=false;

				if(index==0)
					b1.addText("Your substitute broke!");
				else
					b1.addText("The enemy's substitute broke!");
			}
		}
	}