-------------
word
oath
word[0]
o
start
(0, 0)
find_word
previous_position
[(0, 0)]
position
(0, 1)
next_letter
1
board[i][j]
a
word[next_letter]
a
next_letter
1
len(word)-1
3
a
previous_position
[(0, 0)]
position
(0, 2)
next_letter
2
position
(1, 1)
next_letter
2
board[i][j]
t
word[next_letter]
t
next_letter
2
len(word)-1
3
t
previous_position
[(0, 0)]
position
(0, 1)
next_letter
3
position
(1, 2)
next_letter
3
position
(2, 1)
next_letter
3
board[i][j]
h
word[next_letter]
h
next_letter
3
len(word)-1
3
position
(1, 0)
next_letter
2
False
previous_position
[(0, 0)]
position
(0, 1)
next_letter
1
board[i][j]
a
word[next_letter]
a
next_letter
1
len(word)-1
3
a
previous_position
[(0, 0)]
position
(0, 2)
next_letter
2
position
(1, 1)
next_letter
2
board[i][j]
t
word[next_letter]
t
next_letter
2
len(word)-1
3
t
previous_position
[(0, 0)]
position
(0, 1)
next_letter
3
position
(1, 2)
next_letter
3
position
(2, 1)
next_letter
3
board[i][j]
h
word[next_letter]
h
next_letter
3
len(word)-1
3
position
(1, 0)
next_letter
2
-------------
word
pea
word[0]
p
-------------
word
eat
word[0]
e
start
(1, 0)
find_word
previous_position
[(1, 0)]
position
(0, 0)
next_letter
1
position
(1, 1)
next_letter
1
position
(2, 0)
next_letter
1
False
previous_position
[(1, 0)]
position
(0, 0)
next_letter
1
position
(1, 1)
next_letter
1
position
(2, 0)
next_letter
1
start
(1, 3)
find_word
previous_position
[(1, 3)]
position
(0, 3)
next_letter
1
position
(2, 3)
next_letter
1
position
(1, 2)
next_letter
1
board[i][j]
a
word[next_letter]
a
next_letter
1
len(word)-1
2
a
previous_position
[(1, 3)]
position
(0, 2)
next_letter
2
position
(2, 2)
next_letter
2
position
(1, 1)
next_letter
2
board[i][j]
t
word[next_letter]
t
next_letter
2
len(word)-1
2
False
previous_position
[(1, 3)]
position
(0, 3)
next_letter
1
position
(2, 3)
next_letter
1
position
(1, 2)
next_letter
1
board[i][j]
a
word[next_letter]
a
next_letter
1
len(word)-1
2
a
previous_position
[(1, 3)]
position
(0, 2)
next_letter
2
position
(2, 2)
next_letter
2
position
(1, 1)
next_letter
2
board[i][j]
t
word[next_letter]
t
next_letter
2
len(word)-1
2
-------------
word
rain
word[0]
r
start
(2, 3)
find_word
previous_position
[(2, 3)]
position
(1, 3)
next_letter
1
position
(3, 3)
next_letter
1
position
(2, 2)
next_letter
1
False
previous_position
[(2, 3)]
position
(1, 3)
next_letter
1
position
(3, 3)
next_letter
1
position
(2, 2)
next_letter
1