Recursive call for printing stack In reverse order
printExistPath ( sx , sy , last ) ; if ( x == 83 ) { document . write ( " " + x + " " + y + " " ) ; } else { document . write ( " " + x + " " + y + " " ) ; } }