Added bouncing ball with collision detection