Add before, game loop, and after functions
Add intro splash screen
Misc fixes