Seems wrong test case


#1

Test case:
[
[26, 92, 8, 44, 42, 63, 14, 63, 41]
[15, 40, 11, 28, 79, 76, 65, 15, 16]
[40, 97, 8, 37, 58, 91, 72, 54, 40]
[96, 23, 30, 31, 74, 66, 98, 72, 45]
[99, 20, 73, 86, 78, 51, 75, 86, 41]
]
My solution gives me: 26+15+40+11+8+44+42+63+14+63+15+16+40+45+41=483
However:
Your Input: 5 9 26 92 8 44 42 63 14 63 41 15 40 11 28 79 76 65 15 16 40 97 8 37 58 91 72 54 40 96 23 30 31 74 66 98 72 45 99 20 73 86 78 51 75 86 41
Expected output is 497


#2

my fault, we can move only 2 sides, not 4.