There's no need to:
1. open another topic when there's already an fork by Nor7on of the official one opened
here.
2. copy/paste the entire code when there's no real good reason to do so, rather than giving an url to the file you have downloaded. In your case the 'getlang'
procedure (function in other languages) clearly is missing. Anyway, I've updated your first post to point to it's author web site.
Now, back on your problem. If you have a look at
Nor7on's post you will get the missing function(s).
Once the game is over, the king and the pawn go back in the same box.