Based on Sigma Chess for OS X by Ole K. Christensen, code released 11Nov2012