P.S. I did notice an error in my code regarding the retrieval of the y-velocities and have fixed that to no avail. I'm going to try moving the balls further ahead in time to where they are no longer colliding. I think that is the problem. Not sure how to calculate that but it seems the thing to do.