Got the heuristic AI working!