Added code to cut off ball detector lines outside of the green horizon