public void payRent(Player p)
   {
    int toll = 0;
      if (!checkMonopoly()) toll = rent;
      else
      {
         switch (houses)
         {
            case 0: toll = (rent * 2);
                    break;
            case 1: toll = oneHs;
                    break;
            case 2: toll = twoHs;
                    break;
            case 3: toll = threeHs;
                    break;
            case 4: toll = fourHs;
                    break;
            case 5: toll = hotel;
                    break;
         }

      }
      JOptionPane.showMessageDialog(null, "You must pay $"+toll+" to "+owner.getName(), "Pay Rent.", JOptionPane.ERROR_MESSAGE);
      p.payment(-toll);
      owner.payment(toll);
   }