Coding guideline fixes

Cleanup of chess code

https://bugzilla.gnome.org/show_bug.cgi?id=738918