Fix a regression caused by the fact that chessboard.js doesn't keep castling, moves and halfmoves in memory