changed ai engine structure, deleted gem