fixed a lot of bugs in the commonAI, added a additional heuristic pattern