From ancient anagrams to digital puzzles: how word games evolved over the centuries and why certain formats endured while others faded away.