Mssing ai branching but main loop works