For the late Broadway composer, crafting crosswords and treasure hunts was as thrilling as writing musicals.