Hi,
I did the same, also checking a group of rays instead of a single ray. The grader is programmed a bit poorly in that regard. It’s not checking whether you avoid the sphere but rather whether you did the exact same thing as in the solution.
Instead of checking all values only check one angle per direction, see last post here. Remeber to also check the left side though.