Never mind. I fixed it. I just needed to subtract half the xspeed from x and half the yspeed from y right at the beginning of the balls' flight.