function moveLeft() {
        undraw()
        const isAtLeftEdge = current.some(index => (currentPosition + index) % width === 0)
    
        if(!isAtLeftEdge) {
            currentPosition -= 1
        }
        if(current.some(index => squares[currentPosition + index].classList.contains('taken'))) {
            currentPosition +=1
        }    
        draw()
    }
// move the tetramino left unless there end of grid or there is a blockage
move the tetramino left unless there end of grid or there is a blockage
move the tetramino left unless there end of grid or there is a blockage
function moveLeft() {
        undraw()
        const isAtLeftEdge = current.some(index => (currentPosition + index) % width === 0)
        if(!isAtLeftEdge) {
            currentPosition -= 1
        }
        if(current.some(index => squares[currentPosition + index].classList.contains('taken'))) {
            currentPosition +=1
        }    
        draw()
    }
function moveLeft ( ) { undraw ( ) const isAtLeftEdge = current . some ( index => ( currentPosition + index ) % width === 0 ) if ( ! isAtLeftEdge ) { currentPosition -= 1 } if ( current . some ( index => squares [ currentPosition + index ] . classList . contains ( 'taken' ) ) ) { currentPosition += 1 } draw ( ) }
move the tetramino left unless there end of grid or there is a blockage
move the tetramino left unless there end of grid or there is a blockage