@Override
	public void tick() {
		if (targetMob != null && !targetMob.isDead()) {
			if (Math.abs(targetMob.x - x) < RANGERADIUS && Math.abs(targetMob.y - y) < RANGERADIUS) {
				targetMobInRange = true;
			} else {
				targetMobInRange = false;
			}
			
			if (targetMobInRange) {
				double angle = Math.toDegrees(Math.atan2((targetMob.x-x), (targetMob.y-y)));
				//EDWARD DO NOT FORGET THIS IS IN RADIANS
				
				dx = (float) Math.sin(Math.toRadians(angle))*speed;
				dy = (float) Math.cos(Math.toRadians(angle))*speed;
			}
			
			
			if (Math.abs(targetMob.x - x) < DAMAGERADIUS && Math.abs(targetMob.y - y) < DAMAGERADIUS) {
				if (++damageTime >= damageFrame) {
					targetMob.hurt(1);
					damageTime = 0;
				}
			}
			
		} else {
			
			//TODO put code here so that it walks randomly
			//It can't walk completely randomly, that would be weird
			
			
			
		}
		
		
	}