This R code finds the probabilities by iterating the Markov Chain, using Greg Martin's comment "this is equivalent to a single random walker on an $N×N$ checkerboard, starting at $(1,N)$, and ending when reaching either $(k,k)$ or $(k+1,k)$ for some $k∈\mathbb N$." The first line uses the same $N=30$ as Jean Marie, though this can be changed.
N <- 30
filter <- outer(1:N,1:N, "<")
positionprob <- matrix(0,nrow=N,ncol=N)
positionprob[1,N] <- 1
probfinished <- 0
t <- 0
while (sum(positionprob * filter) > 1e-20){
t <- t+1
filteredprob <- positionprob * filter
augmented <- rbind(filteredprob[1,], filteredprob, filteredprob[N,])
augmented <- cbind(augmented[,1], augmented, augmented[,N])
positionprob <- (augmented[-c(1,2),-c(1,2)] +
augmented[-c(1,N+2),-c(1,2)] + augmented[-c(N+1,N+2),-c(1,2)] +
augmented[-c(1,2),-c(1,N+2)] + augmented[-c(1,N+2),-c(1,N+2)] +
augmented[-c(N+1,N+2),-c(1,N+2)] + augmented[-c(1,2),-c(N+1,N+2)] +
augmented[-c(1,N+2),-c(N+1,N+2)] + augmented[-c(N+1,N+2),-c(N+1,N+2)]
) / 9 + positionprob - filteredprob
probfinished[t] <- sum(positionprob - positionprob * filter)
}
ondiagonal <- positionprob[cbind(1:N, 1:N)]
pastdiagonal <- positionprob[cbind(2:N, 1:(N-1))]
combostopprob <- ondiagonal + (c(0,pastdiagonal) + c(pastdiagonal,0)) / 2
plot(combostopprob)
combostopprob
[1] 0.002772733 0.007675049 0.012473265 0.017251971 0.022004215 0.026704038
[7] 0.031310570 0.035766768 0.039998749 0.043916832 0.047418931 0.050396660
#[13] 0.052744012 0.054367815 0.055198392 0.055198392 0.054367815 0.052744012
#[19] 0.050396660 0.047418931 0.043916832 0.039998749 0.035766768 0.031310570
#[25] 0.026704038 0.022004215 0.017251971 0.012473265 0.007675049 0.002772733
sum(combostopprob) # should be 1
1
Jean Marie's simulation is very close to this.
This also gives the expected time.
sum(diff(c(0,probfinished[-t])) * 1:(t-1)) # expected time
# 403.0262
sum(1-c(0,probfinished)) # alternative
# 403.0262
The same code can equally well be used for larger $N$ - it just takes longer - or smaller $N$. Playing with that, there seems to be a limiting distribution after suitable rescaling as $N$ increases. I might guess it could be related to the distribution of the location of the first passage of a 2D Wiener process starting from the centre of a square boundary. Somebody asked that question on Reddit getting a general reply pointing at harmonic measure and another pointing at stochastic processes and boundary value problems.
Added: Damian Pavlyshyn's answer has since done that analysis. His limiting curve (with suitable rescaling) shown in red below fits these values in black very well, using
plot(combostopprob)
lines(t_grid*(N+1/3)+1/3, Re(dmu)/(N+1/3), col="red")
