private void pickUpActionPerformed(java.awt.event.ActionEvent evt)                                       
  {
    if(!game.getInBattle())
    {
      String text = game.pickUp();
      outputText.setText(text);
      if(text != "There is nothing in this room.\n")
      {
        int slot = game.getNewestItemSlot();
        String name = game.getNewestItemName();
        if(name != null)
        {
          if(slot == 0)
            inv1.setText(name);
          if(slot == 1)
            inv2.setText(name);
          if(slot == 2)
            inv3.setText(name);
          if(slot == 3)
            inv4.setText(name);
          if(slot == 4)
            inv5.setText(name);
          if(slot == 5)
            inv6.setText(name);
        }
      }
    }
  }