Removed some useless code from my heuristic