AI interface added waiting you to implement

Modified several files and now you can insert your code to ai.js to
implement your AI. More information, please read README.