
I have a maze as shown above(use the link) and state 3 contains prize while state 7 contains shock. a mouse can be placed in any state from 1 to 9 randomly and it move through the maze uniformly at random
$P_i$ denote the probability that mouse reaches state 3 before state 7, given that AIM started in compartment i.
how to compute $P_i$ for $i ∈ \{1,2,3,4,5,6,7,8,9\}$.
You can use general Markov chain tools for this, as the other answer suggests -- but you can also just wing it: