ai fixes, working defender