let color = game.board[cell]; // 1, or 2 button.textContent = color; // remove once CSS formatting works button.setAttribute('data-state', color);