Refactoring the implementation of the Chessboard interface.