I understand, I have to get the coordinates of i and j for example working with 2 for inside the getdirection