Fix scoping problems
Trying to get events working
Fixed game loop and events and quitting

Now you can be a quitter too!