src/games/snakeGame/Objects/snakeObject.js
/**
     * this will draw and redraw all cells
     */
this will draw and redraw all cells
this will draw and redraw all cells
draw() {
        for (let i = 0; i < this.snakeCellArray.length; i++) {
            if(i === 0 ){
                this.snakeCellArray[i].draw("red");
            }else{
                this.snakeCellArray[i].draw("blue");
            }
        }
    }
draw ( ) { for ( let i = 0 ; i < this . snakeCellArray . length ; i ++ ) { if ( i === 0 ) { this . snakeCellArray [ i ] . draw ( "red" ) ; } else { this . snakeCellArray [ i ] . draw ( "blue" ) ; } } }
this will draw and redraw all cells
this will draw and redraw all cells
//draw each cell