removed global variables in preload and fixed the loading screen bug
Merge pull request #24 from johnlok/loading_scr

removed global variables in preload and fixed the loading screen bug