private void readUnitType(File file){
		try {
			Document d=DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file);
			NodeList nodes=d.getElementsByTagName("meeple-type");
			//runs through the meeples
			for(int i=0;i<nodes.getLength();i++){
				NodeList meepleData= nodes.item(i).getChildNodes();
				String type="";
				//index: 0 = movement, 1 = hitpoints, 2 = maxfirepower, 3 = maxcargo
				int data[]={0,0,0,0};
				for(int e=0;e<meepleData.getLength();e++){
					String name =meepleData.item(e).getNodeName();
					switch(name){
					case "type":
						type=(meepleData.item(e).getTextContent());
						break;
					case "movement":
						data[0]=Integer.valueOf(meepleData.item(e).getTextContent());
						break;
					case "hitpoints":
						data[1]=Integer.valueOf(meepleData.item(e).getTextContent());
						break;
					case "maxfirepower":
						data[2]=Integer.valueOf(meepleData.item(e).getTextContent());
						break;
					case "maxcargo":
						data[3]=Integer.valueOf(meepleData.item(e).getTextContent());
						break;
					default : break;
					}
					
				}
				unit.setMeepleType(type, data);
			}
			
			
		} catch (SAXException | IOException | ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}