I can think of two possible reasons she might do this - some snakes use their tails to lure or distract their prey before the strike is one, but what your girl seems to me to be doing is hunting for an anchor point - something she can stabilize herself with during the strike.
Then again, perhaps I'm overthinking it, and she's just excited.
~Bruce