Added an update function for the AI so that it can see the changes the
enemy AI has made.