Nintendo slumped to an operating loss in first half of fiscal 2017 due to a slowdown in sales and a stronger yen.