public void displayGym()
      {
         Pokemon a, b, c;
         int z = (int)(Math.random() * 11);
         int z2 = (int)(Math.random() * 11);
         int z3 = (int)(Math.random() * 11);
         Object[] possibleValues = { "Train", "Fight Gym Leader", "Leave" };
         int choice = JOptionPane.showOptionDialog(this, "What would you like to do?", "Gym", 
                           JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
                           null, possibleValues, possibleValues[0]);
         switch(choice)
         {
            case 0: Object[] possibleValues2 = { "Jeff", "Mike", "Will", "Nevermind!" };
               int choice2 = JOptionPane.showOptionDialog(this, "Who would you like to fight?", "Gym Training Room", 
                                 JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE,
                                 null, possibleValues2, possibleValues2[0]);
               switch(choice2)
               {
                  case 0:
                     a = new Bulbasaur(25 + z);
                     b = new Wartortle(25 + z2);
                     c = new Charizard(25 + z3);
                     Trainer jeff = new Trainer(battle, "Jeff", a, b, c);
                     battle.commenceBattle(trainer, jeff);
                     break;
                  case 1:
                     a = new Charmander(20 + z);
                     b = new Ivysaur(20 + z2);
                     c = new Blastoise(20 + z3);
                     Trainer mike = new Trainer(battle, "Mike", a, b, c);
                     battle.commenceBattle(trainer, mike);
                     break;
                  case 2:
                  
                     a = new Squirtle(18 + z);
                     b = new Charmeleon(18 + z2);
                     c = new Venusaur(18 + z3);
                     Trainer will = new Trainer(battle, "Will", a, b, c);
                     battle.commenceBattle(trainer, will);
                     break;
                  case 3:
                     displayGym();
                     break;
               }
               break;
            case 1:
               int choice3 = JOptionPane.showConfirmDialog(battle, "Are you sure you want"
                                 + " to fight the gym leader?",
                                 "Gym Leader Chamber",
                                 JOptionPane.YES_NO_OPTION,
                                 JOptionPane.QUESTION_MESSAGE); 
               switch(choice3)
               {
                  case 0:
                     a = new Raichu(40);
                     b = new Haunter(45);
                     c = new Alakazam(50);
                     Trainer leader = new Trainer(battle, "Minsuk", a, b, c);
                     battle.commenceBattle(trainer, leader);
                     break;
                  case 1:
                     displayGym();
                     break;
               }
               break;
            case 2:
               {
               }
         }
      
      }