public void selectedTeam(String team, String homeOrAway) {
		
		try {
			//load xml file to get team
			File file = new File("teams/" + team + ".xml");
			JAXBContext jaxbContext = JAXBContext.newInstance(Players.class);
			
			Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
			Players players = (Players) jaxbUnmarshaller.unmarshal(file);	
			
			if (homeOrAway == "home")
				homeTeam = players.getPlayerList();
			if (homeOrAway == "away")
				awayTeam = players.getPlayerList();
			
			
		} catch (JAXBException e) {
			System.out.println("Incorrect teams selected.");
			if (homeOrAway == "home")
				getHomeTeam();
			if (homeOrAway == "away")
				getAwayTeam();
		}
	}