Add Events and game Loop to main