State includes position and moves remaining. Both affect the probability.
Transition sums weighted contributions. Each of 8 moves contributes of its probability.
Off-board states return . They're absorbing states where the process "fails." This pattern repeats in almost all probability DP: state captures position and progress, transitions are weighted sums, and boundaries return or .