Study example

As requested by Oblomov a study example (in which the initial move number is larger than 1). The code needed for this example can be found in the post about Using more than one chess board.

Btw I like this study especially the part in which promoting to a queen results in a draw.