He doesn't need to figure out where to go, he just needs to run the opposite direction of the mob that is attacking him for a couple seconds. A few moments is all a character usually needs to heal up and get back in the fight. Plus a few monsters will usually follow and this will thin the mob out.