Added loading screen

Added loading state.
Moved static init from mainmenustate.cpp to basestate.cpp