Animation has weird glitch - rewriting from scratch