Added one AILogicTest
Refactoring, change of names, etc