modded HeuristicSearch.java now we need to make sure search loops on
inital state from heap!