function displayShape() {
        // remove trace of tetramino from the entire grid
        displaySquares.forEach(square => {
            square.classList.remove('tetramino')
            square.style.backgroundColor = ''
        })
        //add a class of tetramino to displaySquares from upNextTetraminos[nextRandom]
        upNextTetraminos[nextRandom].forEach(square => {
            displaySquares[displayIndex + square].classList.add('tetramino')
            displaySquares[displayIndex + square].style.backgroundColor = colors[nextRandom]
        })
    
    }
// display the shape in the mni-grid display
display the shape in the mni-grid display
display the shape in the mni - grid display
function displayShape() {
        displaySquares.forEach(square => {
            square.classList.remove('tetramino')
            square.style.backgroundColor = ''
        })
        upNextTetraminos[nextRandom].forEach(square => {
            displaySquares[displayIndex + square].classList.add('tetramino')
            displaySquares[displayIndex + square].style.backgroundColor = colors[nextRandom]
        })
    }
function displayShape ( ) { displaySquares . forEach ( square => { square . classList . remove ( 'tetramino' ) square . style . backgroundColor = '' } ) upNextTetraminos [ nextRandom ] . forEach ( square => { displaySquares [ displayIndex + square ] . classList . add ( 'tetramino' ) displaySquares [ displayIndex + square ] . style . backgroundColor = colors [ nextRandom ] } ) }
display the shape in the mni-grid display
display the shape in the mni - grid display
// remove trace of tetramino from the entire grid //add a class of tetramino to displaySquares from upNextTetraminos[nextRandom]