Further refactoring of the chessboard and game class.