Rethinked AI, fixed bug in Engine.reset