Exchange the order of processing in the MainScene::Update function