Update AI.js

God, I'm bad at operators.