Modularization of End-to-End Learning: Case Study in Arcade Games