fixed part of CardHeuristics.cpp