structred the state machine, and preload all sections only after pygame init()