Changed closed list to hashmap and h as the hashing function