Added the asset loading code and a loading screen.