rootNode.addContent(newPlayer);
}
XMLOutputter xmlOutput = new XMLOutputter();
xmlOutput.setFormat(Format.getPrettyFormat());
xmlOutput.output(document, new FileWriter(gameFile));
System.out.println("Games file updated!");
} catch (IOException e) {
System.out.println(e.getMessage());
} catch (JDOMException jdome) {
System.out.println(jdome.getMessage());