added bonus and deduction to heuristic