Converting SceneDelegate Enviromental Object to AppMain