If we had only the first two cards, the expected value would be $$E[X] = \frac{1}{2}(1) + \frac{1}{2}(0) = 0.5$$ With the third card, it becomes: $$E[X] = \frac{1}{3}(1) + \frac{1}{3}(0) + \frac{1}{3}\left(2 + E[X]\right).$$ Writing it like this allows you to avoid the geometric series that is lurking behind that third card -- provided that you know $E[X]$ exists. In this case it does, but if $E[X] = \infty$, this is invalid, and you need to expand this into a geometric series.
**Edit:** I fixed this, I was previously treating it as though the first card were worth 1 dollar, the second card 2 dollars, and the third worth a chance to pick another card, and to play again as well.