bouncing ball using object