Update ai.js

Almost exhaustive till 27