You can make this very complicated, but the main trick is probably to recognize that. "independent from the current cumulative value there is a 1/3-th probability that a roll ends the game". Then this game has a distribution of number of dice rolls that is geometric distributed with parameter p = 1/3 p = 1 / 3 and this has an expectation value ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.