src/games/snakeGame/Objects/snakeObject.js
/**
    * method to change mouth positions
    * this method will be executed each time when user hit a key or swipe screen
    * @param currDirection
    */
method to change mouth positions
this method will be executed each time when user hit a key or swipe screen
@param currDirection
method to change mouth positions this method will be executed each time when user hit a key or swipe screen @param currDirection
updateMouhtPositon(dir){
    if (dir === "up") this.mouthY -= this.box;
    else if (dir === "down") this.mouthY += this.box;
    else if (dir === "right") this.mouthX += this.box;
    else if (dir === "left") this.mouthX -= this.box;
   }
updateMouhtPositon ( dir ) { if ( dir === "up" ) this . mouthY -= this . box ; else if ( dir === "down" ) this . mouthY += this . box ; else if ( dir === "right" ) this . mouthX += this . box ; else if ( dir === "left" ) this . mouthX -= this . box ; }
method to change mouth positions
 this method will be executed each time when user hit a key or swipe screen
 @param currDirection
method to change mouth positions this method will be executed each time when user hit a key or swipe screen @param currDirection