Final update to AI.lisp