Move state machine creation into basicgame.start