Moved common methods to "ai.pl" and created many ais (+ diff to UI)