Last Fixed bugs in the new AI

2 bugs not fixed