start_positions
[(0, 7), (1, 1), (1, 3), (2, 0), (3, 2), (3, 3), (3, 4), (4, 0), (5, 0), (5, 1), (5, 5), (7, 1), (8, 3), (8, 7), (9, 0), (9, 3), (9, 5)]
start
(0, 7)
word
ab
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (0, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (0, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 6)
nextLetterIndex
1
start_positions
[(0, 7), (1, 1), (1, 3), (2, 0), (3, 2), (3, 3), (3, 4), (4, 0), (5, 0), (5, 1), (5, 5), (7, 1), (8, 3), (8, 7), (9, 0), (9, 3), (9, 5)]
start
(1, 1)
word
ab
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 2), (2, 1), (1, 0)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 2), (2, 1), (1, 0)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(1, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 2), (2, 1), (1, 0)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(1, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 2), (2, 1), (1, 0)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(1, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 0)
nextLetterIndex
1
start_positions
[(0, 7), (1, 1), (1, 3), (2, 0), (3, 2), (3, 3), (3, 4), (4, 0), (5, 0), (5, 1), (5, 5), (7, 1), (8, 3), (8, 7), (9, 0), (9, 3), (9, 5)]
start
(1, 3)
word
ab
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 4), (2, 3), (1, 2)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
1
[i][j]
(0, 3)
lettersIndexesList
[(1, 3), (0, 3)]
word
ab
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(0, 3)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 3), (0, 2)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
1
[i][j]
(0, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 4)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 3), (0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 4)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 3), (0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
2
[i][j]
(1, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 5), (2, 4), (1, 3)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 3), (0, 4), (1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 5), (2, 4), (1, 3)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 3), (0, 4), (1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 4)
nextLetterIndex
3
[i][j]
(2, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 4), (2, 3)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 4), (2, 3)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 4), (2, 3)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 3)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 5), (2, 4), (1, 3)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 3), (0, 2)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 3), (0, 2)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 2)
nextLetterIndex
4
[i][j]
(0, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (0, 1)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (0, 1)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 3), (0, 4), (1, 4), (2, 4), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
5
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(2, 4)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4), (2, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
1
[i][j]
(1, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (1, 3)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 4), (1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
2
[i][j]
(0, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (0, 3)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(2, 4), (1, 4), (0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (0, 3)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(2, 4), (1, 4), (0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
3
[i][j]
(0, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (0, 2)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (0, 2)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 2)
nextLetterIndex
4
[i][j]
(0, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (0, 1)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (0, 1)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (1, 3)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (1, 3)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4), (2, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4), (2, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 4)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4), (2, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(2, 4), (1, 4), (0, 4), (0, 3), (0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 3)
nextLetterIndex
5
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(2, 7)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (3, 7), (2, 6)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (3, 7), (2, 6)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (3, 7), (2, 6)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(3, 1)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (3, 2), (4, 1), (3, 0)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (3, 2), (4, 1), (3, 0)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (3, 2), (4, 1), (3, 0)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (3, 2), (4, 1), (3, 0)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 0)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(4, 4)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 4), (4, 5), (5, 4), (4, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(4, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 4), (4, 5), (5, 4), (4, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(4, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 5)
nextLetterIndex
1
[i][j]
(4, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 5), (4, 6), (5, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 4), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 5)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 5), (4, 6), (5, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 4), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 6)
nextLetterIndex
2
[i][j]
(4, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 6), (4, 7), (5, 6)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 6)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 6), (4, 7), (5, 6)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 6), (4, 7), (5, 6)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 6)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 5), (4, 6), (5, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 5)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 4), (4, 5), (5, 4), (4, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 4)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 4), (4, 5), (5, 4), (4, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(4, 4), (4, 5), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 3)
nextLetterIndex
3
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(6, 0)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 0), (6, 1), (7, 0)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(6, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 0)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 0), (6, 1), (7, 0)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(6, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 1)
nextLetterIndex
1
[i][j]
(6, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 1), (6, 2), (7, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(6, 0), (6, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 1)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 1), (6, 2), (7, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(6, 0), (6, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 2)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 1), (6, 2), (7, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(6, 0), (6, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 1)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 0), (6, 1), (7, 0)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(6, 0), (6, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 0)
nextLetterIndex
2
[i][j]
(7, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 0)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(6, 0), (6, 1), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 1)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 0)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(6, 0), (6, 1), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 0)
nextLetterIndex
3
[i][j]
(8, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(8, 1), (9, 0)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(6, 0), (6, 1), (7, 0), (8, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 1)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(8, 1), (9, 0)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(6, 0), (6, 1), (7, 0), (8, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 0)
nextLetterIndex
4
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(6, 3)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 4), (7, 3), (6, 2)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(6, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 3)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 4), (7, 3), (6, 2)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(6, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 4), (7, 3), (6, 2)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(6, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 3)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 4), (7, 3), (6, 2)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(6, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 2)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(6, 4)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 4), (6, 5), (7, 4), (6, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(6, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 4), (6, 5), (7, 4), (6, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(6, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 4), (6, 5), (7, 4), (6, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(6, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 4), (6, 5), (7, 4), (6, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(6, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 3)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(6, 5)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (7, 5), (6, 4)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (7, 5), (6, 4)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (7, 5), (6, 4)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (7, 5), (6, 4)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 4)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(7, 4)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 4), (7, 5), (8, 4), (7, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(7, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 4), (7, 5), (8, 4), (7, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(7, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 4), (7, 5), (8, 4), (7, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(7, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 4), (7, 5), (8, 4), (7, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(7, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 3)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(7, 6)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 6), (7, 7), (8, 6), (7, 5)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 6), (7, 7), (8, 6), (7, 5)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 7)
nextLetterIndex
1
[i][j]
(7, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 7), (8, 7)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(7, 6), (7, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 7)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 7), (8, 7)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(7, 6), (7, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 7)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 6), (7, 7), (8, 6), (7, 5)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(7, 6), (7, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 6)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 6), (7, 7), (8, 6), (7, 5)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(7, 6), (7, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 5)
nextLetterIndex
2
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(8, 0)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 0), (8, 1), (9, 0)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(8, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 0)
nextLetterIndex
1
[i][j]
(7, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 0), (7, 1)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(8, 0), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 0)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 0), (7, 1)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(8, 0), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 1)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 0), (8, 1), (9, 0)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(8, 0), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 1)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 0), (8, 1), (9, 0)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(8, 0), (7, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 0)
nextLetterIndex
2
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(8, 1)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 2), (9, 1), (8, 0)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(8, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 2), (9, 1), (8, 0)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(8, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 2), (9, 1), (8, 0)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(8, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 1), (8, 2), (9, 1), (8, 0)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(8, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 0)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(8, 4)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 4), (8, 5), (9, 4), (8, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(8, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 4), (8, 5), (9, 4), (8, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(8, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 4), (8, 5), (9, 4), (8, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(8, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 4), (8, 5), (9, 4), (8, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(8, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 3)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(8, 5)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (8, 6), (9, 5), (8, 4)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(8, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (8, 6), (9, 5), (8, 4)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(8, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (8, 6), (9, 5), (8, 4)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(8, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (8, 6), (9, 5), (8, 4)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(8, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 4)
nextLetterIndex
1
start_positions
[(0, 3), (2, 4), (2, 7), (3, 1), (4, 4), (6, 0), (6, 3), (6, 4), (6, 5), (7, 4), (7, 6), (8, 0), (8, 1), (8, 4), (8, 5), (8, 6), (9, 2)]
start
(8, 6)
word
bddbebcba
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 6), (8, 7), (9, 6), (8, 5)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(8, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 6), (8, 7), (9, 6), (8, 5)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(8, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 6), (8, 7), (9, 6), (8, 5)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(8, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 6)
nextLetterIndex
1
[i][j]
(9, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(9, 7), (9, 5)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(8, 6), (9, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 7)
nextLetterIndex
2
[i][j]
(9, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(8, 7)]
len all_neighbours
1
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(9, 7), (9, 5)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 5)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 6), (8, 7), (9, 6), (8, 5)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(8, 5)
nextLetterIndex
3
[i][j]
(8, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (9, 5), (8, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 5)
nextLetterIndex
4
[i][j]
(7, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 5), (7, 6), (7, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 5)
nextLetterIndex
5
[i][j]
(6, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (6, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 5)
nextLetterIndex
6
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (6, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 6)
nextLetterIndex
6
[i][j]
(6, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 6), (6, 7), (7, 6)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 6)
nextLetterIndex
7
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 6), (6, 7), (7, 6)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 7)
nextLetterIndex
7
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 6), (6, 7), (7, 6)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 6)
nextLetterIndex
7
[i][j]
(7, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 7)]
len all_neighbours
1
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 7)
nextLetterIndex
8
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 5), (6, 6), (6, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 4)
nextLetterIndex
8
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 5), (7, 6), (7, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 6)
nextLetterIndex
8
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(6, 5), (7, 6), (7, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(7, 4)
nextLetterIndex
8
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(7, 5), (9, 5), (8, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(9, 5)
nextLetterIndex
8
[i][j]
(9, 5)
lettersIndexesList
[(8, 6), (9, 6), (9, 7), (8, 5), (7, 5), (6, 5), (6, 6), (7, 6), (9, 5)]
word
bddbebcba
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(0, 2)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
1
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(0, 5)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 6)
nextLetterIndex
1
[i][j]
(0, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 7)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
2
[i][j]
(1, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 5), (0, 6), (1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
3
[i][j]
(1, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (1, 4)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (1, 4)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
4
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(1, 2)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (1, 3), (2, 2), (1, 1)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (1, 3), (2, 2), (1, 1)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (1, 3), (2, 2), (1, 1)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (1, 3), (2, 2), (1, 1)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 1)
nextLetterIndex
1
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(1, 6)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 7), (2, 6), (1, 5)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 6)
nextLetterIndex
1
[i][j]
(0, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (0, 5)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(1, 6), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 7)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (0, 5)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(1, 6), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
2
[i][j]
(0, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 5), (0, 4)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(1, 6), (0, 6), (0, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
3
[i][j]
(1, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (1, 4)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (1, 4)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 5), (0, 4)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 7), (2, 6), (1, 5)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 7), (2, 6), (1, 5)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 7), (2, 6), (1, 5)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(1, 6), (0, 6), (0, 5), (1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
4
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(1, 7)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (2, 7), (1, 6)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(1, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (2, 7), (1, 6)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(1, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (2, 7), (1, 6)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(1, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
1
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(2, 2)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (3, 2), (2, 1)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (3, 2), (2, 1)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 3)
nextLetterIndex
1
[i][j]
(2, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 2), (2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 2), (2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 4)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 2), (2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 3)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (3, 2), (2, 1)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(2, 2), (2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 2)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (3, 2), (2, 1)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(2, 2), (2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
2
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(3, 5)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 6), (4, 5), (3, 4)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(3, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 6), (4, 5), (3, 4)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(3, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 6), (4, 5), (3, 4)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(3, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 5)
nextLetterIndex
1
[i][j]
(4, 5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 6), (5, 5), (4, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(3, 5), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 6)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 6), (5, 5), (4, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(3, 5), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 5)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 6), (5, 5), (4, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(3, 5), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 4)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 5), (3, 6), (4, 5), (3, 4)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(3, 5), (4, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 4)
nextLetterIndex
2
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(3, 6)
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 6), (3, 7), (4, 6), (3, 5)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(3, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 6), (3, 7), (4, 6), (3, 5)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(3, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 7)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 6), (3, 7), (4, 6), (3, 5)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(3, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 6)
nextLetterIndex
1
[i][j]
(4, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 7), (5, 6), (4, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(3, 6), (4, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 7)
nextLetterIndex
2
[i][j]
(4, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 7), (5, 7)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(3, 6), (4, 6), (4, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 7), (5, 7)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(3, 6), (4, 6), (4, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 7), (5, 6), (4, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(3, 6), (4, 6), (4, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 6)
nextLetterIndex
3
[i][j]
(5, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 7), (6, 6), (5, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 7)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 7), (6, 6), (5, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 6)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 7), (6, 6), (5, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 5)
nextLetterIndex
4
[i][j]
(5, 5)
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6), (5, 5)]
word
ededa
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 7), (5, 6), (4, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6), (5, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 6), (3, 7), (4, 6), (3, 5)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(3, 6), (4, 6), (4, 7), (5, 6), (5, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 5)
nextLetterIndex
4
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(0, 0)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 0)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 1), (1, 0)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 0)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 0)
nextLetterIndex
1
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(0, 4)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 4), (0, 3)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 4), (0, 3)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 4), (0, 3)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
1
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(0, 6)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6), (0, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 7)
nextLetterIndex
1
[i][j]
(0, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7)]
len all_neighbours
1
num_neighbours
1
lettersIndexesList
[(0, 6), (0, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
2
[i][j]
(1, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 7), (1, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 6), (0, 7), (1, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 7)
nextLetterIndex
3
[i][j]
(2, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 7), (2, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 7)
nextLetterIndex
4
[i][j]
(3, 7)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 7), (3, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 7)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(4, 7), (3, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 6)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 7), (2, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 7), (1, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6), (0, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6), (0, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 6), (0, 7), (1, 7), (2, 7), (3, 7)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
5
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(1, 4)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (2, 4), (1, 3)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (2, 4), (1, 3)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (2, 4), (1, 3)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 4)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 4), (1, 5), (2, 4), (1, 3)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(1, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
1
[i][j]
(1, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (2, 3), (1, 2)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(1, 4), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (2, 3), (1, 2)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(1, 4), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 3)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (2, 3), (1, 2)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(1, 4), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
2
[i][j]
(1, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(1, 4), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 2)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(1, 4), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 2)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(1, 4), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 1)
nextLetterIndex
3
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(1, 5)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 6), (2, 5), (1, 4)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 6), (2, 5), (1, 4)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 6), (2, 5), (1, 4)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 5), (1, 6), (2, 5), (1, 4)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(1, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
1
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(2, 3)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3), (2, 2)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(2, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 3)
nextLetterIndex
1
[i][j]
(1, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 4), (1, 2)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 3), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 4), (1, 2)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 3), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 4), (1, 2)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 3), (1, 3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
2
[i][j]
(1, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 3), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 2)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 3), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 2)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (2, 2), (1, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 3), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 1)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3), (2, 2)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(2, 3), (1, 3), (1, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 4)
nextLetterIndex
3
[i][j]
(2, 4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 4), (2, 5), (3, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 4)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3), (2, 2)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 3)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 3), (2, 4), (3, 3), (2, 2)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 2)
nextLetterIndex
4
[i][j]
(2, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (2, 1)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 2)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (2, 1)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(2, 3), (1, 3), (1, 2), (2, 4), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
5
start_positions
[(0, 0), (0, 4), (0, 6), (1, 4), (1, 5), (2, 3), (4, 2), (4, 5), (4, 6), (5, 2), (5, 6), (6, 1), (7, 0), (7, 7), (9, 6), (9, 7)]
start
(4, 2)
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (4, 3), (5, 2), (4, 1)]
len all_neighbours
4
num_neighbours
4
lettersIndexesList
[(4, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 2)
nextLetterIndex
1
[i][j]
(3, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 2), (3, 3), (3, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 2), (3, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 2)
nextLetterIndex
2
[i][j]
(2, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (2, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 2), (3, 2), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (2, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 3)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 2), (2, 3), (2, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 2), (3, 3), (3, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 3)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 2), (3, 3), (3, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 1)
nextLetterIndex
3
[i][j]
(3, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (4, 1), (3, 0)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 1)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (4, 1), (3, 0)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 1)
nextLetterIndex
4
[i][j]
(4, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 1), (4, 0)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 1)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 1), (4, 0)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 0)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 1), (4, 1), (3, 0)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 0)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (4, 3), (5, 2), (4, 1)]
len all_neighbours
4
num_neighbours
3
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 3)
nextLetterIndex
5
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (4, 3), (5, 2), (4, 1)]
len all_neighbours
4
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 2)
nextLetterIndex
5
[i][j]
(5, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 2), (5, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1), (5, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 3)
nextLetterIndex
6
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 2), (5, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1), (5, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(6, 2)
nextLetterIndex
6
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(5, 3), (6, 2), (5, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1), (5, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(5, 1)
nextLetterIndex
6
[i][j]
(5, 1)
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1), (5, 2), (5, 1)]
word
daebeda
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(3, 2), (4, 3), (5, 2), (4, 1)]
len all_neighbours
4
num_neighbours
1
lettersIndexesList
[(4, 2), (3, 2), (2, 2), (3, 1), (4, 1), (5, 2), (5, 1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(4, 1)
nextLetterIndex
6
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(0, 2)
word
edecaeabc
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 3)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 2)
nextLetterIndex
1
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 3), (1, 2), (0, 1)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 2)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 1)
nextLetterIndex
1
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(0, 5)
word
edecaeabc
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 5)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 6)
nextLetterIndex
1
[i][j]
(0, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6)]
len all_neighbours
2
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 7)
nextLetterIndex
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 7), (1, 6)]
len all_neighbours
2
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 6)
nextLetterIndex
2
[i][j]
(1, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 5), (0, 6), (1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 7)
nextLetterIndex
3
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 6)
nextLetterIndex
3
[i][j]
(2, 6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 7), (3, 6), (2, 5)]
len all_neighbours
3
num_neighbours
3
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 7)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 7), (3, 6), (2, 5)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(3, 6)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(2, 7), (3, 6), (2, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(2, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(1, 7), (2, 6), (1, 5)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
2
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(1, 5)
nextLetterIndex
4
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 6), (1, 5), (0, 4)]
len all_neighbours
3
num_neighbours
1
lettersIndexesList
[(0, 5), (0, 6), (1, 6), (2, 6)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
neighbour_position
(0, 4)
nextLetterIndex
4
start_positions
[(0, 2), (0, 5), (1, 2), (1, 6), (1, 7), (2, 2), (3, 5), (3, 6), (3, 7), (4, 1), (4, 3), (4, 7), (5, 4), (5, 7), (6, 2), (6, 7), (7, 2), (7, 3), (7, 5)]
start
(1, 2)
word
edecaeabc
^^^^^^^^^^^^^^^^^^^^^^^^^^^
main loop all_neighbours
[(0, 2), (1, 3), (2, 2), (1, 1)]
len all_neighbours
4
num_ne