public void update() {
		
		if(target == null)
			look();
		else
		{
			if(Util.lineOfSight(this, target) &&
					Util.dist(x, y, getTarget().getX(), getTarget().getY()) 
					<= getAttackRange()) {
				if(attackDelay.isOver())
					attack();
			}

			else {
				if(Util.dist(x, y, getTarget().getX(), getTarget().getY()) 
					<= beyondRange)
				chase();
			}
			
				
		}
		if(stats.getCurrentHealth() <= 0)
			death();
	}