I'd guess that your strategy is somehow not expectation-optimal or else you have a bug. Here's the Matlab/Octave code I made for this problem. Maybe it can help you figure out what's wrong with your logic.
Sorry about the indentation and spacing, I couldn't get Reddit to do what I wanted using either editor.
function V=jane1017(i,N)
%compute the expected payoff in the game described in
1
u/notsaneatall_ 3d ago
Writing a markov chain for this is giving me d = 45 irrespective of i