Added AI.js

For the Artificial Intelligence