Changed enemy ai slightly

when an enemy's target goes out of vision he will now finish his current
path
and then check if the target as come back into range if not he will
switch to seach update.