as she neared the three-headed dog , its right head whipped in her direction and began snarling at her and baring its teeth , although thankfully its other heads remained fixed in the octopus 's direction .