Fixed AI behaviour.
AI Behaviour works properly now.