The closeChest and openChest functions are extremely similar, except for the sections that are underlined below.
Comment or Delete the Testing Code
Now that we have tested the code, you don’t want the open animation to just automatically start the closing animation. Delete or comment the code that starts the animation again.