slightly more interesting heuristic function that looks at captures