This is the source code for the chess example I'm doing for my blog.