public void writeScore() {

		System.out.println("Ghi player ");
		try {

			out = new ObjectOutputStream(new FileOutputStream(currentPath));
			for (int i = 0; i < 3; i++) {
				out.writeObject(players[i]);
				System.out.println("player " + i + " :"
						+ players[i].getPlayer() + " " + players[i].getScore());

			}
			out.close();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		players = readScore();
	}