Call T(n) = the average duration of a game where you and your opponent
each start out with n units of money, and win or lose 1 unit of money
every toss (1 unit of time). So you are inquiring about T(14).
Notice that the average duration of the game of winning or losing 14 units of
money when the stakes are 1 unit per toss, and there is one toss every unit of time-
is the same as the average duration of a game of winning 7 units of money when
the the stakes are 2 units per toss, and there is one toss every T(2) units of time.
This insight lets you solve your problem, and others like it, with almost no calculation.
The above insight is written out as
T(14)= T(7)T(2), and in general, T(ab)=T(a)T(b).
For such a relation, T(m) must be some power of m.
i.e. T(m) = m^x
because (a*b)^x = a^x * b^x.
[ where * is multiplication, ^ is exponentiation).
T(2) can be easily calculated directly.
If you and your opponent start with 2, there's a 50% chance that
the game is over in 2 tosses [ i.e. when the first 2 tosses are the same,
HH or TT], and a 50% chance that you are back where you started
after 2 tosses (i.e. when the first 2 tosses are different- HT or TH ).
so T(2) = .5 * 2 + .5 ( T(2) + 2)
solving gives T(2) = 4.
So T(2)= 2^x = 4, and so the exponent x is 2.
so your game of 14 has an average duration of 14 ^2 = 196.