Added ball-collision code to v2