bouncing ball with mouse interaction