AI

Fiexd some bug with AI