added heuristic search 3