public void update() {
    if (!isFirst && lives > 0 && !isWin) {
      mobSpawner();
      map.process();
      for (int i = 0; i < mobs.length; i++)
        if (mobs[i].inGame)
        mobs[i].process();
    }
    
    if (isWin) {
      if (winFrame >= winTime) {
        if (level == maxLevel)
        {
          inputScore();
          gsm.setState(gsm.MENUSTATE);
        }
        else {
          store.holdsItem = false;
          store.heldID = -1;
          store.realID = -1;
          isWin = false;
          level += 1;
          score += 2*bank + 20*lives;
          bank = 0;
          showQuiz();
        }
        winFrame = 0;       
      }
      else
        winFrame++;
    }
  }