All he had to do was wait for her signals. She'd lead the wolves to the traps, which will buy them enough time to escape across the bridge Rarity said was at the front of the castle. Once they were across he could cut the bridge and they'd have a whole chasm between them and the wolves. 