Optomized Code

-Improved and optomized code for the animations