public HealthBar getHealthBarLength(HealthBar h8, int health, int maxHealth)
	{

		if (health < 0)
		health = 0;

		h8.percent = (double) health / (double) maxHealth;
		double placeHolder = h8.percent * 144.0;
		h8.length = (int) placeHolder;


		if (h8.percent > .5)
		h8 = HealthBar.GREEN;
		else if (h8.percent > .2)
		h8 = HealthBar.ORANGE;
		else
		h8 = HealthBar.RED;

		return h8;
	}