Let $p_A,p_B$ with $p_A+p_B=1$, $p_A \geq p_B$ be the probabilities of a biased coin flip. Player $A$ gets 1 point if the coin flip gives heads, $B$ gets 1 if tails. The player who reaches $N$ points first wins.
I believe this is a problem similar to the gambler's ruin, but with a recurrence relation given by $$\boxed{P(i,j) = p_A P(i+1,j) + p_B P(i,j+1)}$$ where $P(i,j)$ is the probability $A$ wins if $A$ has $i$ points and $B$ has $j$ points. I want to calculate $P(0,0)$ (i.e. the probability $A$ wins in when the game begins), and my boundary conditions are (I think!) $$P(N,j) = 1\quad \forall j\in\{0,\ldots,N-1\}$$ (i.e. $A$ has) and $$P(i,N) = 0\quad\forall i\in\{0,\ldots,N-1\}.$$
I tried to solve the problem by brute force for some small $N$ cases and got the expression $$P(0,0) = p_A^N \sum_{k=N-1}^{2n-2} \binom{k}{N-1} p_B^{k-N+1}$$ which I think is correct.
I want to solve the recurrence relation and prove that this formula is correct, but don't know how to properly solve that equation.