bug in min-max-value.  attempt to develop better heuristic