Gaming company reaches $1m settlement with Attorney General after admitting to injecting bitcoin mining code into users' computers.