Modded heuristicsearch, now loops back to inital state (diff hash) but
wont traverse after first loop...