private void SetScene(GameScene scene)
 {
     this.scene = scene;
     if(scene.kind == Scene.LOAD){
         load = (LoadScene)scene;
     }else if (scene.kind == Scene.INTRO){
         intro = (IntroScene)scene;
     }else if(scene.kind == Scene.ACTION){
         action = (ActionScene)scene;
     }else if(scene.kind == Scene.EDITOR){
         editor = (EditorScene)scene;
     }
 }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Set the sharing mode of the graphics device to turn on XNA rendering
            SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(true);
            spriteBatch = new SpriteBatch(SharedGraphicsDeviceManager.Current.GraphicsDevice);
            Global.GraphicsDevice = spriteBatch.GraphicsDevice;
            SetWindowSize();

            load = new LoadScene(this);
            scene = load;
            load.Initialize();
            load.running = true;

            timer.Start();
            base.OnNavigatedTo(e);
        }