moved animation to placeAnimationFrame
tossing works!