public void saveStats(BlackjackGui gui) {
    	switch(gui.numPlayers) {
    		case 1: p1wins = players.get(0).getWins(); p1losses = players.get(0).getLosses(); 
    			p1won = players.get(0).getMoneyWon(); p1lost = players.get(0).getMoneyLost();
    			p1money = players.get(0).getMoney();
    			try {
    			File file1 = new File(gui.p1Name + ".txt");
    			FileWriter writer1 = new FileWriter(file1);
    			writer1.write(p1wins + " " + p1losses + " " + p1won + " " + p1lost + " " + p1money + "\n");
    			writer1.close();
    			} catch(Exception ex) { }
    			break;
    		case 2: p1wins = players.get(0).getWins(); p1losses = players.get(0).getLosses(); 
    			p1won = players.get(0).getMoneyWon(); p1lost = players.get(0).getMoneyLost(); 
    			p2wins = players.get(1).getWins(); p2losses = players.get(1).getLosses(); 
    			p2won = players.get(1).getMoneyWon(); p2lost = players.get(1).getMoneyLost();
    			p1money = players.get(0).getMoney();
    			p2money = players.get(1).getMoney();
    			try {
    			File file1 = new File(gui.p1Name + ".txt");
    			FileWriter writer1 = new FileWriter(file1);
    			writer1.write(p1wins + " " + p1losses + " " + p1won + " " + p1lost + " " + p1money + "\n");
    			writer1.close();
    			File file2 = new File(gui.p2Name + ".txt");
    			FileWriter writer2 = new FileWriter(file2);
    			writer2.write(p2wins + " " + p2losses + " " + p2won + " " + p2lost + " " + p2money + "\n");
    			writer2.close();
    			} catch(Exception ex) { }
    			break;
    		case 3: p1wins = players.get(0).getWins(); p1losses = players.get(0).getLosses(); 
    			p1won = players.get(0).getMoneyWon(); p1lost = players.get(0).getMoneyLost(); 
    			p2wins = players.get(1).getWins(); p2losses = players.get(1).getLosses(); 
    			p2won = players.get(1).getMoneyWon(); p2lost = players.get(1).getMoneyLost(); 
    			p3wins = players.get(2).getWins(); p3losses = players.get(2).getLosses(); 
    			p3won = players.get(2).getMoneyWon(); p3lost = players.get(2).getMoneyLost();
    			p1money = players.get(0).getMoney();
    			p2money = players.get(1).getMoney();
    			p3money = players.get(2).getMoney();
    			try {
    			File file1 = new File(gui.p1Name + ".txt");
    			FileWriter writer1 = new FileWriter(file1);
    			writer1.write(p1wins + " " + p1losses + " " + p1won + " " + p1lost + " " + p1money + "\n");
    			writer1.close();
    			File file2 = new File(gui.p2Name + ".txt");
    			FileWriter writer2 = new FileWriter(file2);
    			writer2.write(p2wins + " " + p2losses + " " + p2won + " " + p2lost + " " + p2money + "\n");
    			writer2.close();
    			File file3 = new File(gui.p3Name + ".txt");
    			FileWriter writer3 = new FileWriter(file3);
    			writer3.write(p3wins + " " + p3losses + " " + p3won + " " + p3lost + " " + p3money + "\n");
    			writer3.close();
    			} catch(Exception ex) { }
    			break;
    	}
    	
    }