A coin is biased so that the probability of obtaining a head is $p$, where $0 < p < 1$. If the sequence $HHH$ occurs first then Player $A$ wins, and if the sequence $HTH$ occurs first then player $B$ wins. The coin is tossed until one player wins. For what value of $p$ is the game fair? i.e. Probability of Player $A$ and Player $B$ winning are equal.
I've attempted to research on Penney's game with biased coins, but there doesn't appear to be any information on it. Personally, I'm not well versed with probability, just know the basics, so any help would be useful. I've seen ideas of using Markov Chains but I've never used them myself.