public void hurt(double amount, Entity entity) {
		if (entity instanceof Player) {
			Player player = (Player) entity;
			player.lives -= amount;
			if (player.lives <= 0) {
				player.die();
			}

		} else if (entity instanceof Mob) {
			Mob mob = (Mob) entity;
			mob.lives -= amount;
			if (mob.lives - amount <= 0)
				die(mob);
		}
	}