I was solving this problem : Link

Now in the first example solution is said to be

(1,4) to (3,1), then to (2,0) and then to (1,3) whose answer is said to be 8.1820424980

But if movement is like this

(1,4) to (1,3) [Distance = 1], then to (3,1) [Distance = 2\sqrt{2}] and then to (2,0) whose answer will be 5.2426406871

Am I misunderstanding this question in some way?