private static void setInTop5(int score, String name){
	ArrayList<String> temp = getTop5List();
	String s = name + " " + score;
	temp.add(0, s);
	File fil = new File(FILENAME);
	try {
		FileWriter writer = new FileWriter(fil);
		@SuppressWarnings("resource")
		BufferedWriter buf = new BufferedWriter(writer);
		int size=0;
		if(temp.size()>5){
			int min ;
			int index;
			int minn;
			for (int i = 0;i<temp.size();i++){
				if(score>=Integer.parseInt(temp.get(i))){
					temp.remove(i);
				}
			}
			size = size-1;
		}
		for (int i =0; i<temp.size();i++){
			buf.write(temp.get(i));
			
		}
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
//TODO: implement a bufferedWriter to save results in the text file;
}