Object oriented version of ball detector.