End-to-End Learning and Intervention in Games