Setup Clean mainApplication with a game loop.