From "Alice through the Looking-Glass..."
Well, a long internet digression today informed me that it derives from a
children's game called Snap-dragon.
(Raisins are sprinkled in a bowl of brandy, which is set alight - the kids have to grab raisins without getting burnt. Games used to be so much more fun :)