chessbox: fix 'i = i++', based on gnuchess4.0-pl80