src/games/snakeGame/level1/snakeGamelevel1.js
/**
   * this will update state of game
   * whether pause or resumed or gameOver ETC
   */
this will update state of game
whether pause or resumed or gameOver ETC
this will update state of game whether pause or resumed or gameOver ETC
updateGameState(state){
    this.setState({
      gameState : state
    })
  }
updateGameState ( state ) { this . setState ( { gameState : state } ) }
this will update state of game
 whether pause or resumed or gameOver ETC
this will update state of game whether pause or resumed or gameOver ETC