Suppose that you win on the $n$th turn, then your net gain is $$2^{n-1}-(1+2+\dots+2^{n-2})=2^{n-1}-(2^{n-1}-1)=1$$
This betting strategy is called a martingale, and is the origin of the term martingale in probability theory. The downside of course is that the game can last arbitrarily long, so you need an unlimited amount of money to employ it.