A US game has got regulatory approval to help treat attention deficit hyperactivity disorder.