Tracking the trajectory of a ball