(unstable) [fixed] AI deadlocks by moving everything to tasks
(unstable) [fixed] some AI logic

Change-Id: I313b4ed1799c73f3c2e9f7e28b4e8fb3aab1e233