The lawsuit claims the video games’ makers added features they knew would be addictive without implementing safety features.