splitted AI into AI and AI2; improved AI