Context: In a game I sometimes play, players roll percentile dice against one another to win points. Each player has a unique threshold they have to roll below to score a point, but if both players roll below their threshold, neither scores a point and they roll again. The first player to three points wins.
Question: I'm trying to figure out the probability of player A scoring three points before player B.
$p$ = the probability of player A rolling below their scoring threshold
$q$ = the probability of player B rolling below their scoring threshold
$x$ = the probability of player A scoring a point
$y$ = the probability of player B scoring a point
Since $p$ and $q$ are independent events, I know that you can calculate the probability of a given player scoring points by $x = p*(1-q)$ and $y = q*(1-p)$
However, I'm not sure what formula to use to determine the probability that $x$ occurs 3 times before $y$ occurs 3 times if I assume an open-ended number of trials.
Example: To give some solid numbers, assume $p = 0.56$ and $q = 0.54$; this gives us $$x = 0.56*(1-0.54) = 0.2576$$ and $$y = 0.54*(1-0.56) = 0.2376$$ which means that for each individual round of rolling, there is a 25.76% chance that A will score a point, a 23.76% chance that B will score a point, and a 50.48% chance that neither will score a point (either because neither of them will roll below their threshold or because both will roll below their threshold, prompting another roll).
Given all of this, how do I go about calculating the probability that A will score 3 points before B scores 3 points?