Updated A* scores and how they are set to prevent an indefinite loop.