public void actionPerformed(ActionEvent e) {
		if (e.getSource() == toggle || e.getSource() == mb.showHideDecks)	{
			dp.toggle();
			if (dp.isVisible())	{
				sp.setVisible(true);
			} else {
				sp.setVisible(false);
			}
		}
		if (e.getSource() == dp.create)	{
		    JFileChooser fc = new JFileChooser();
		    FileNameExtensionFilter filter = new FileNameExtensionFilter(".txt", "txt");
		    fc.setFileFilter(filter);
		    int status = fc.showOpenDialog(this);
		    if (status == JFileChooser.APPROVE_OPTION) {
		    	Deck deck = new Deck(fc.getSelectedFile());
		    	deck.dg.addActionListener(this);
		  // System.out.println(deck.dg.getClass().toString());
		    	//dp.decks.add(deckGraphic);
		    	//dp.deckGraphics.add(deckG);
		    	dp.add(deck.dg);
		    	dp.decks.add(deck);
		    	dp.validate();
		    }
		}
		if (e.getSource().getClass().toString().equals("class com.hutchip2.gui.DeckGraphic"))	{
			for (int i = 0; i < dp.decks.size(); i++)	{
					if (e.getSource() == dp.decks.get(i).dg)	{
						currentDeck = dp.decks.get(i);
						currentDeck.currentIndex = 0;
						currentDeck.currentCard = currentDeck.get(currentDeck.currentIndex);
						currentDeck.currentCard.isFront = true;
						cp.card.setText(currentDeck.currentCard.front);
						cp.card.validate();
					}
			}
		}
		//if (e.getSource() == cp.card)	{
			
		//}
	}