That makes zero sense. If they do that, it's dumb. The play was broken AFTER Richards shot it. By that logic, the goal should be uncredited.
It goes to the last opposing player that touched it. That's Richards. If nobody touched it, it would go to the closest player.
The rule usually works out fine, but in this instance it's pretty silly.