src/games/snakeGame/Objects/snakeObject.js
/***
     * if snake eat the food
     * it will return true or false accordingly
     * @param currDirection
     * @param foodObject
     */
if snake eat the food
it will return true or false accordingly
@param currDirection
@param foodObject
if snake eat the food it will return true or false accordingly @param currDirection @param foodObject
isFoodEated(food){
        if (this.mouthX === food.xPos && this.mouthY === food.yPos) {
            return true;
        }
        else{
            return false;
        }
    }
isFoodEated ( food ) { if ( this . mouthX === food . xPos && this . mouthY === food . yPos ) { return true ; } else { return false ; } }
if snake eat the food
 it will return true or false accordingly
 @param currDirection
 @param foodObject
if snake eat the food it will return true or false accordingly @param currDirection @param foodObject