Let’s explore the general case where P(heads) = p and P(tails) = 1 - p = q.
Define P(x,y) to be the probability of the player losing when the player starts with x coins and the house starts with y coins.
P(1,1) = q and P(1,n) = q + p P(2,n-1) = q + p (P(1,n-1) )^2.
The equations P(1,1) = q and P(1,n) = q + p (P(1,n-1) )^2 define a recursive sequence. It is not difficult to show that sequence is monotonically increasing.
We can use induction to show that this sequence is bounded above by 1.
P(1,1) = q <= 1.
P(1,n) = q + p (P(1,n-1) )^2 <= q + p = 1.
Furthermore, we can show that when q/p <= 1 the sequence is bounded above by q/p.
P(1,1) = q < q/p.
P(1,n) = q + p (P(1,n-1) )^2 < q + p (q/p)^2 = (pq + q^2) / p = q/p.
Since all monotonic bounded sequences have limits we can define P(1) = lim(n->inf) P(1,n) = lim(n->inf) P(1,n-1)
Taking limits of both sides of P(1,n) = q + p (P(1,n-1) )^2 yields:
P(1) = q + p (P(1))^2
Solving for P(1) gives two solutions, q/p and 1. So given our upper bounds from above we know P(1) = q/p when q/p < 1 and P(1) = 1 when q/p >= 1.
Thus we always know which of the two solutions is correct.
Finally, we also have P(x) = A + B (q/p)^x. Since we know P(0) = 1 for all p and P(1) = q/p or P(1) = 1. So we can solve for A and B in both cases.
When q/p < 1 we have A = 0 and B = 1 thus P(x) = (q/p)^x.
When q/p >= 1 we have A = 1 and B = 0 thus P(x) = 1.
So if the coin is fair or favors tails ruin is certain no matter our starting stake, otherwise there is a non-zero probability of our stake growing without bound.