Added a check to make sure the isDead hashmap contains a key