changing name of hook file into events. adding game and drawing loop object.