Bouncing ball with vectors