MADS: Refactoring and cleanup of the game startup code