Finished AI at last, or I hope so