updated grade system
merged ai.js