Project that calculates the shortes way between 2 points in 2d matrix