a working yet bad heurstic in hwt.c