Updated enemyAI script to the latest working version