public void upgradeStreet(Player p)
   {
      if (houses >= 5) JOptionPane.showMessageDialog(null, name+" is already fully upgraded.", "Cannot Upgrade.", JOptionPane.ERROR_MESSAGE);
      
      else
      {
         if (checkMonopoly())
         {
            int i = group.indexOf(this);
            boolean upgradable = true;

            for (Street prop : group)
            {
               if (prop.houses < this.houses)
               {
                  upgradable = false;
                  JOptionPane.showMessageDialog(null, "Properties must be upgraded equally.", "Cannot Upgrade.", JOptionPane.ERROR_MESSAGE);
               }
            }

            if (upgradable)
            {
               if (p.getFunds() >= bldgCost)
               {
                  JOptionPane.showMessageDialog(null, name+" upgraded!", "Success!", JOptionPane.INFORMATION_MESSAGE);
                  houses++;
                  p.payment(bldgCost * -1);
                  updateGraphics();
               }

               else JOptionPane.showMessageDialog(null,"Not enough funds!","Not enough funds!", JOptionPane.ERROR_MESSAGE);
            }
         }

         else JOptionPane.showMessageDialog(null, "You must own all properties of this color before any can be upgraded.", "Cannot Upgrade.", JOptionPane.ERROR_MESSAGE);
      }
   }