Updated the trampoline with animation, and slightly tweaked code