he dashed to and fro , confusing his scent trail just in case , leaped and ran deeper and deeper into the wood , until finally he grew tired and scrambled up the trunk of a huge pine into the dense blanket of needles and lay on a branch , panting .