checking if hero has path to him