Animation code

It works! It even slows down the animation if you run slower.