anchor.diff:    @published String youranimal='';
     @published String newquestion='';
     @published bool wronganswer=false;
  +  
  +  int yBranch;
  +  int nBranch;
  +  
   
     AnimalGuess.created() : super.created() {
       // The below 2 lines make sure the Bootstrap CSS will be applied
       var root = getShadowRoot("animal-guess");
       root.applyAuthorStyles = true;
     }
  +  
  +  void getQuestionById(questionid)
  +  {
  +    var path='http://www.rsywx.net/animal/getQuestionById/$questionid';
   
  -  void newGame() {
  -    gameinprogress=true;
  -    win=false;
  -    lost=false;
  -    reachedend=false;
  -    qid=1;
  -    getQuestionById(qid);
  -  }
  -  
  -  void getQuestionById(qid)
  -  {
  -    var path='http://www.rsywx.net/animal/getQuestionById/$qid';
  -    /*var req=new HttpRequest();
  -    req..open('GET', path)
  -      ..onLoadEnd.listen((e)=>requestComplete(req))
  -      ..send('');
  -   */
       HttpRequest.getString(path)
       .then((String res)
           {
  
positive.code:       {
          question=myguess;
        }
      }
    }
    
    void submitForm(Event e)
    {
      var path;
      /*if(newquestion.endsWith('?'))
      {
        wrongquestion=true;
        return;
      }
      else
      {
        wrongquestion=false;
      }
      */
      if(mybranch.toLowerCase()=='y'||mybranch.toLowerCase()=='yes') // Y to my guessed animal, N to the animal in player's mind
      {
        wronganswer=false;
  
negative.code:     
      if(!wronganswer)
      {
        HttpRequest.getString(path)
          .then((e)=>newQuestionComplete());
      }
      return;
    }
  
    void newGame() {
        gameinprogress=true;
        win=false;
        lost=false;
        reachedend=false;
        qid=1;
        getQuestionById(qid);
    }
    
    void newQuestionComplete()
    {
      wronganswer=false;
      newGame();
    }
    
  }
  
  
  
  