factor out PhaserState.Microgame class.