The online word game from the New York Times will hit the small screen in the UK and US from next year.