public void mousePressed(MouseEvent event)
        {
            if(end == false){
            //x = z;
            z = getCardPressed(event.getX(), event.getY());
            //top.setText("" + z + "");
            //Integer i = new Integer(z);
            //if(i != -1 && z != x) count++;
            //if(cardSelect == true)
            //{
            //if(count >= 12) cardSelect = false;
            //String s = new String();
            //s = i.toString();

            if(z == -1) 
            {
                top.setText("NOT VALID");
            }
            else
            {
               if(phase == 0 || phase == 1)
               {
                   if(tmpDeck.getCard(z).status() == false) //this function (what ever it does) covered the whole else part of the
                                                            //if else statement, it was looking through tmpDeck but that isnt even used
                                                            //in phase 2............. wow austin
                   {
                       top.setText(tmpDeck.getCard(z).getTitle());
                   }
                   else
                   { 
                       top.setText("PICKED "); z = -1;
                   }
               }
               
               if(phase == 2)
               {
                 
                  top.setText("" + z + "");
                  if(z < 3)
                  {
                    //System.out.println(p1.getDeck().getCard(z).getTitle());
                    top.setText(p1.getDeck().getCard(z).getTitle());
                  }
                  
                  if(z >= 3) //this is needed to show other players cards
                  {
                      //System.out.println(p2.getDeck().getCard(z - 3).getTitle());
                      top.setText(p2.getDeck().getCard(z - 3).getTitle());
                  }
               }
               
                    
                //z = z-3;
               // top.setText(p2.getDeck().getCard(z).getTitle());
            
            }
               repaint();
            //top.setText("" + z + "");
            //top.setText("x = " + event.getX() + ", y = " + event.getY() + ".");
        //}
        }
    }