public static void savePlayer(Player p){
		File personalDir = new File(playerDir, ""+p.id);
		File personalGames = new File(personalDir, "games");
		File playerDat = new File(personalDir, p.id + ".txt");
		File tempGame;
		personalGames.mkdirs();
		if(playerDat.exists()){
			playerDat.delete();
		}
		try{
			BufferedWriter bw = new BufferedWriter(new FileWriter(playerDat));
			bw.write(gson.toJson(p));
			bw.flush();
			for(GameStat g: p.getGames()){
				tempGame = new File(personalGames, Time.setDate(g.gameDate).fileDate() + "_" + g.gameId + ".txt");
				if(!tempGame.exists()){
					bw = new BufferedWriter(new FileWriter(tempGame));
					bw.write(gson.toJson(g));
					bw.flush();
				}
			}
			bw.close();
		}catch(IOException e){
			Logger.loudLogLine("***Error logging player " + p.id + "***");
			Logger.loudLog(e);
		}	
	}