The Phylogenesis Of Card-playing: From Tribal Rituals To Online Algorithms