Find shortest path in 2d array. If such a path exists, adding the remov...