Update AI.js

Testing some of the algorithm stuff