Bounces an svg circle around inside a rectangle