More AI behavior

The basic AI behavior is mostly done.  Should just have one or two more
bugs to squash.