const checkSquare = (board, x, y) => { const block = board[x][y] if (board[x + 1][y] === block && board[x][y + 1] === block && board[x + 1][y + 1] === block) return true return false}const checkTargetBlocks = (m, n, board) => { const targetBlocks = [] for (let i = 0; i { let count = 0 targetBlocks.forEach(([x, y]) => { board[x][y] = 'Xcur' board[..