Created new AI functions for the enemy