public void saveScore(String name, int points) {
		
		ArrayList<Score> scoreList = new ArrayList<Score>();
		
		scoreList.add(new Score(name, points));

		setPath(new Strings().FILE_TO_XML_HIGHSCORE);
		build();
		NodeList nodeList = getAllValue("player");
		
		for (int temp = 0; temp < nodeList.getLength(); temp++) {
			Node nNode = nodeList.item(temp);
			if (nNode.getNodeType() == Node.ELEMENT_NODE) {
				Element eElement = (Element) nNode;
				scoreList.add(new Score(eElement.getElementsByTagName("name").item(0).getTextContent(), Integer.parseInt(eElement.getElementsByTagName("score").item(0).getTextContent())));
			}
		}
		
		for (int i = 0; i < scoreList.size(); i++) {
			for (int j = 0; j < i; j++) {
				if (scoreList.get(i).getPoints() > scoreList.get(j).getPoints()) {
					Score scoreI = scoreList.get(i);
					Score scoreJ = scoreList.get(j);
					scoreList.remove(scoreI);
					scoreList.remove(scoreJ);
					scoreList.add(j, scoreI);
					scoreList.add(i, scoreJ);
				 }
			}
		}
		
		try {
			DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
			DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
			
			Document doc = docBuilder.newDocument();
			Element rootElement = doc.createElement("highScores");
			doc.appendChild(rootElement);
			
			for (int i = 0; i < 4; i++) {
				Element player = doc.createElement("player");
				rootElement.appendChild(player);
				
				Element nameElement = doc.createElement("firstname");
				nameElement.appendChild(doc.createTextNode("yong"));
				player.appendChild(nameElement);
				
				Element scoreElement = doc.createElement("firstname");
				scoreElement.appendChild(doc.createTextNode("yong"));
				player.appendChild(scoreElement);
			}
			
			TransformerFactory transformerFactory = TransformerFactory.newInstance();
			Transformer transformer = transformerFactory.newTransformer();
			DOMSource source = new DOMSource(doc);
			StreamResult result = new StreamResult(new File(path));
			
			transformer.transform(source, result);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}