src/games/snakeGame/Objects/snakeObject.js
/**
     * speacial method to create initial snake cell (that is mouth)
     */
speacial method to create initial snake cell (that is mouth)
speacial method to create initial snake cell ( that is mouth )
createMouth() {
        const mouth = new SnakeCell(this.ctx, this.box, this.box,
            Math.floor(this.boardWidth / 2) * this.box,
            Math.floor(this.boardHeight / 2) * this.box,
        );
     this.mouthX = mouth.xPos;
     this.mouthY = mouth.yPos
        this.snakeCellArray.unshift(mouth)
    }
createMouth ( ) { const mouth = new SnakeCell ( this . ctx , this . box , this . box , Math . floor ( this . boardWidth / 2 ) * this . box , Math . floor ( this . boardHeight / 2 ) * this . box , ) ; this . mouthX = mouth . xPos ; this . mouthY = mouth . yPos this . snakeCellArray . unshift ( mouth ) }
speacial method to create initial snake cell (that is mouth)
speacial method to create initial snake cell ( that is mouth )