Rewrote AI system
Nightly commit 15/02/2014