change the method in MainScene