Could Anyone explain me the difference between the two

1."Could They have Won the match if they Performed a bit better?"
2."."Could They have Won the match if they had Performed a bit better?"