src/games/snakeGame/Objects/snakeObject.js
/**
    * this method will return true or false
    * if the snake is collided with board or not
    *
    * 
    */
this method will return true or false
if the snake is collided with board or not
this method will return true or false if the snake is collided with board or not
isCollidedWithBoard(){
    if (this.mouthX < 0 || this.mouthX >= this.boardWidth * this.box || this.mouthY < 0 || this.mouthY >= this.boardHeight * this.box) {
        return true;
    }else{
        return false;
    }
   }
isCollidedWithBoard ( ) { if ( this . mouthX < 0 || this . mouthX >= this . boardWidth * this . box || this . mouthY < 0 || this . mouthY >= this . boardHeight * this . box ) { return true ; } else { return false ; } }
this method will return true or false
 if the snake is collided with board or not
this method will return true or false if the snake is collided with board or not