Simple AI improvements

Mostly AI stuff. The wreck me now. Also continuing to move utilities to
the untility folder.