Minor Tweaks

Hamming distance heuristic. Prevention of return to state of parent.