Rewritten AI fixing tons of bugs
Merge remote-tracking branch 'origin/master'