US-based Niantic is selling its games business as part of a pivot to artificial intelligence