*/
	public void addScore (int newScor){
		
		int lastScor = -5;
		boolean modif = false;
		int niv = ParkingFactory.getParkFactor().getNiv();
		String dif = ParkingFactory.getParkFactor().getDif(); 
		String[] tab = scores.get(dif);
	
		if (tab[niv].length() !=0){
			lastScor = Integer.parseInt(tab[niv]);
		}else{ 
			scores.get(dif)[niv]=newScor+"";
			modif = true;
		}
	
		if((lastScor != -5) && ((lastScor > newScor)||(lastScor==-1))){
			scores.get(dif)[niv]=newScor+"";
			modif = true;
		}
		
		if (modif){
			IHM.getIHM().afficheScores();
		
			try{
				this.sauverJoueur(this.nom);
			
			}
			catch (NullPointerException npe){}
			catch (Exception e){JOptionPane.showMessageDialog(null, e.getMessage(), "avertissement", JOptionPane.WARNING_MESSAGE);}
		}
	}