Made mainGame member of DGame, changed Config back to initialize, fixed lib instances.