added heuristic function to IState