public void update() {
		if (health <= 0) {
			dead = true;
			if (Player.target == this)
				Player.target = null;
			deathTimer();
			return;
		}

		if (!frozen) {
			anim++;
			if (anim % 100 == 0) {
				move = random.nextInt(5); // Comment to freeze movement
				anim = random.nextInt(50); // Comment to freeze movement
			}
		} else {
			move = 4;
			freezeTime++;
			if (freezeTime == freezeCap) {
				frozen = false;
			}
		}

		xa = 0;
		ya = 0;

		checkMove(distance);

		if (xa != 0 || ya != 0) {
			move(xa, ya);
		}

		if (hit) {
			healthTimer();
		}
	}