backtract to the last col and row placement

pop(&s,&row);

col = col - 1;