public void update()
	{
		clip.setRect(x, y, width, height);
		if(Main.hurttime>20)
		for(int z = 0; z<Main.zombies.size(); z++)
		{
			Zombie zombie = Main.zombies.get(z);
			if(		clip.intersectsLine(zombie.x, zombie.y, zombie.x+Zombie.width, zombie.y)||
					clip.intersectsLine(zombie.x, zombie.y, zombie.x, zombie.y+Zombie.height)||
					clip.intersectsLine(zombie.x+Zombie.width, zombie.y, zombie.x+width, zombie.y+height)||
					clip.intersectsLine(zombie.x+Zombie.width, zombie.y+Zombie.height, zombie.x, zombie.y+height))
			{
				health -= zombie.damage;
				Main.hurttime = 0;
			}
		}
		if(health<0)
			Main.gameover();
	}