Finished AI

Needs testing because I found myself writing it when I didn't have access to Unity.  Still need to write the leash triggers but that won't take me long