The Wolf consented and lifted up the foot , and was giving his whole mind to the discovery of the thorn , when the Ass , with his heels , kicked his teeth into his mouth and galloped away .