Used recursion to smooth animation
Added scales for r x and y