Fixed AI Bugs Semi final

before adding the events