Add AI.js to solve the game in AI algorithm