Made changes to Heuristic Search with IOExceptions