It is the second because the other two are wrong. I don't think I'll give you that much detail in this answer since I'm not sure you put that much effort into thinking things through yourself. In the interests of a decent answer, however, you will want to research 3rd conditionals, that is the relationship between tenses when using hindsight.
Something like this:
If + past perfect, perfect conditional.
Searching this site will yield some good information, and failing that you can always start here (English Club - 3rd Conditionals).
Parsing the following using rule 2:
I didn't see the goal.
I should have seen the goal, but I wish that I had.
That's correct. The relationship between the tenses is correct since the opportunity to "see the goal" has gone.
Parsing the same example using rule 3:
I should have seen the goal, but I wish that I did.
Wrong. We can't reflect on an "impossibility" using past simple.