First, Current I don't have Android to test but I'm not sure if you design to work with drag sequence like this. See below example
[x] [ ] [x]
[ ] [ ] [ ]
[ ] [ ] [ ]
I think from position (i,j) => (1,1) should be able to go to (1,2), (2,1), (2,2), (2,3), (3,2).
x = start point
y = possible move
[x] [y] [ ]
[y] [y] [y]
[ ] [y] [ ]
First, Current I don't have Android to test but I'm not sure if you design to work with drag sequence like this. See below example
I think from position (i,j) => (1,1) should be able to go to (1,2), (2,1), (2,2), (2,3), (3,2).