You will need to modify the last block of code, where it does move, move-top-disk , move. And here is the ...
stackoverflow.com