Relative Coordinate System
Introduce variables rowB, colB to track the blank.
/* rowB,colB is position of blank, initially the lower-right hand corner. */
Picture the frame relative to the position of blank (in general, after the blank has moved around