AI assignment (AS3.0)