Finished coding the current functions in EnemyAI.