public void update(String player, String element, String value) {
		Node players = doc.getFirstChild();
		NodeList playerNode = null;
		
		NodeList list = players.getChildNodes();
		for(int i = 0; i < list.getLength(); i++) {
			Node node = list.item(i);
			
			if(player.equals(node.getNodeName()))
				playerNode = node.getChildNodes();
		}
		
		for(int i = 0; i < playerNode.getLength(); i++) {
			Node node = playerNode.item(i);
			
			if(element.equals(node.getNodeName()))
				node.setTextContent(value);
		}
		
		try {
			TransformerFactory transformerFactory = TransformerFactory.newInstance();
			Transformer transformer;
			transformer = transformerFactory.newTransformer();
			DOMSource source = new DOMSource(doc);
			StreamResult result = new StreamResult(new File(filePath));
			transformer.transform(source, result);
		} catch (TransformerException e) {
			e.printStackTrace();
		}
	}