Ok , so I have a matrix formed with 1s and 0s , and 3 given points(x,y).You can\'t make a step diagonally , you have to go north,south,west or east and the 1s are obstacles.