+ 4
you face it?
+ 2
If I understand this correctly, this appears to be more challenging than selecting the nearest smallest value. If on your first move you go right, it's a trap:
5 2 7
3 8 9
4 6 1
5+2+7+9+1 = 24
5+3+4+6+1 = 19
0
It's not too difficult, as I understand. You should move right or down only looking which of these numbers is less than other one. And when you reach right or bottom of the matrix, then you should move only down or right.