ImagePanel(String name, final JFrame f) {
            this.add(new JLabel(name));
            try {
                img = ImageIO.read(new File(name));
               
                this.setPreferredSize(new Dimension(
                    img.getWidth(), img.getHeight()));
              
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        
            
            //declares and adds the Quit and To Home JButtons
        	JButton quitButton = new JButton("Quit");
        	JButton toHomeButton = new JButton("To Home");
        	
        	quitButton.setFont(new Font("American Typewriter", Font.PLAIN, 15));
        	toHomeButton.setFont(new Font("American Typewriter", Font.PLAIN, 15));
        	setLayout(null);
        	toHomeButton.setLocation(560,530);
        	toHomeButton.setSize(100,50);
        	quitButton.setLocation(350,530);
        	quitButton.setSize(100,50);
        	this.add(toHomeButton);
        	this.add(quitButton);
        	

        	//exits application when clicked
    		quitButton.addActionListener(new ActionListener(){
    			public void actionPerformed(ActionEvent ae){
    				System.exit(0);
    			}
    				
    			});
    		//show Home Page card in CardLayout implementation
    		toHomeButton.addActionListener(new ActionListener(){
    			public void actionPerformed(ActionEvent ae){
    				if(Client.sendMsg("LEAVE_SCOREBOARD").contains("FAILURE")){
    					JOptionPane.showMessageDialog(null,"Nah, I won't let you.", "Oops! Try again.", JOptionPane.NO_OPTION);
    				} else {
    					new JoinGameGUI();
    					f.dispose();
    				}
    			}
    				
    			});
    		
    		String[][] rowData = new String[usernames.size()][7]; 
    		
    		String[]columnNames = { "Username", "Character", "Damage","Comets Sucked In","Total Deaths","Power Ups Used","Max Velocity"};
    		
    		
    		for (int i=0;i<usernames.size();i++){
    			rowData[i][0] = usernames.get(i);
    			rowData[i][1] = characters.get(i);
    			rowData[i][2] = damages.get(i);
    			rowData[i][3] = comets.get(i);
    			rowData[i][4] = deaths.get(i);
    			rowData[i][5] = powerups.get(i);
    			rowData[i][6] = maxvels.get(i);
    			
    		}
    		for (int i=0;i<usernames.size();i++){
    			for (int j=0;j<6;j++){
    				System.out.println(rowData[i][j]+"");
    			}
    		}
    		//System.out.println(rowData);
    		JTable myTable = new JTable(rowData, columnNames);
    		myTable.setFont(new Font("American Typewriter",Font.ITALIC,14));
    		myTable.setForeground(Color.WHITE);
    		myTable.setOpaque(false);
    		((DefaultTableCellRenderer) myTable.getDefaultRenderer(Object.class)).setOpaque(false);
    		JScrollPane scrollpane = new JScrollPane(myTable);
    		scrollpane.setOpaque(false);
    		scrollpane.getViewport().setOpaque(false);
    		scrollpane.setBounds(70,50,800,400);
    		this.add(scrollpane);
    		
    		
    		
    		
            
    		//Player1:
    		/*
    		ImageIcon img1 = getImageIcon(characterP1);
    		Image image1 = img1.getImage();
    		Image newImage1 = image1.getScaledInstance(100,100, java.awt.Image.SCALE_SMOOTH);
    		img1 = new ImageIcon(newImage1);
    		JLabel label1 = new JLabel(img1);
    		label1.setSize(60,50);
    		label1.setLocation(95,300);
    		this.add(label1);
    		*/
    		
    		//Other players:
    		for(int i=0; i< characters.size(); i++){
    			System.out.println(characters.get(i));
	    		ImageIcon img = getImageIcon(characters.get(i));
	    		Image image = img.getImage();
	    		Image newImage = image.getScaledInstance(100,100, java.awt.Image.SCALE_SMOOTH);
	    		img = new ImageIcon(newImage);
	    		JLabel label = new JLabel(img);
	    		label.setSize(60,50);
	    		label.setLocation(95,300);
	    		//this.add(label);
    		}
        }