got the animation working

animation working! canvas no flicker