finished ball detection. works fast and accurately