The coins can come up TT, TH, HT, HH

The probability that Tom wins is

This is an infinite geometric series, with first term=a=0.25 and common ratio=r=0.5

Hence

The game is decided if two tails appear or two heads appear.

The probability of this is

This time "a" and "r" are both 0.5.