Added ai, fixing a few bugs, etc.
Added ai, fixing a few bugs, etc.