function drawOnTo(theBoard) {
    var boardLength = theBoard.length;
    let col = 0;
    let row = -1;
    let currentPosition = 0;

    while (currentPosition < boardLength){
        if (currentPosition % 3 == 0) { // if we can divise by 3 
            col = 0;
            row++;
        }
        // retrieve the location of the symbol and draw it onto the board with its respective colour
        const symbol = document.getElementsByClassName('column_' + col + ' row_' + row)[0];
        symbol.innerHTML = theBoard[currentPosition];
        col++;
        currentPosition++;
    }
}
/*
* maps the move onto the board array, which is then drawn
*/
maps the move onto the board array, which is then drawn
maps the move onto the board array which is then drawn
function drawOnTo(theBoard) {
    var boardLength = theBoard.length;
    let col = 0;
    let row = -1;
    let currentPosition = 0;
    while (currentPosition < boardLength){
        if (currentPosition % 3 == 0) { 
            col = 0;
            row++;
        }
        const symbol = document.getElementsByClassName('column_' + col + ' row_' + row)[0];
        symbol.innerHTML = theBoard[currentPosition];
        col++;
        currentPosition++;
    }
}
function drawOnTo ( theBoard ) { var boardLength = theBoard . length ; let col = 0 ; let row = - 1 ; let currentPosition = 0 ; while ( currentPosition < boardLength ) { if ( currentPosition % 3 == 0 ) { col = 0 ; row ++ ; } const symbol = document . getElementsByClassName ( 'column_' + col + ' row_' + row ) [ 0 ] ; symbol . innerHTML = theBoard [ currentPosition ] ; col ++ ; currentPosition ++ ; } }
maps the move onto the board array, which is then drawn
maps the move onto the board array which is then drawn
// if we can divise by 3  // retrieve the location of the symbol and draw it onto the board with its respective colour