Parents worry about the latest video games, like Fortnite. A generation ago, Dungeons and Dragons was the game that seemed like a menace. But in a surprising twist, its role-playing strategies are now seen as a counterbalance to the problem of screen addiction.