working on optimizing the animations when the user exits the game scene.