Document and refactor chess-polyglot.el.