ai.js Changes 2

Some explanations are added inside the function
Merge branch 'master' of https://github.com/jimmyshum/CS4386

Conflicts:
	ai.js