order queue in AI.java