public void updatePlayer(PlayerData p,GameData g)
	{
		System.out.println(p.name);
		while(!p.getGame().equalsIgnoreCase(g.filename.substring(0, g.filename.indexOf("detail.txt"))+".csv") )
		{
			Player play =(Player)(con.everyone.get(p.name.substring(0, p.name.indexOf(".csv"))));
			if(play ==null)
			{
				con.parseCommand("player "+p.name.substring(0, p.name.indexOf(".csv")), true);
			}
			else if(play.score < 0 && p.InTourny())
			{
				if(!play.in)
					con.parseCommand("tadd "+play.name, true);
				p.advance();
			}
			else if(p.getGame().equalsIgnoreCase(PlayerData.CORRECTION))
			{
				if(play.score > p.tScore())
				{
					int value=play.score-p.tScore();
					correction.give(play.take(value,correction.name, ""),"");
					//play.take(value,play.name);
					
				}
				else if(play.score < p.tScore())
				{
					int value=p.tScore()-play.score;
					/*
					LinkedList<Moneys> temp=new LinkedList<Moneys>();
					temp.add(new Moneys(play.name,value));
					play.give(temp);*/
					play.give(correction.take(value, play.name,""), "");
				}
				p.advance();
			}
			else
			{
				p.swap(g.filename.substring(0, g.filename.indexOf("detail.txt"))+".csv");
			}
		}
	}