public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException {
		
boolean game = false;
while(!game){
		Scanner scanner = new Scanner(new File("Horse Racing Input/playerData.dat"));
		int numPlayers = Integer.parseInt(scanner.nextLine());
		String[][] playerInfo = new String[numPlayers][4];
		getplayers(playerInfo, scanner);
		Scanner userInput = new Scanner(System.in);
		boolean done = false; 
		while(!done)
		{
		String[] horses = getHorses();
		String[] horsesInRace = chooseHorses(userInput, playerInfo, horses);
		getPlayerBet(userInput, playerInfo, horsesInRace);
		startRace(horsesInRace, userInput, playerInfo);
		playAgain(userInput, done, game, playerInfo, numPlayers);
		SaveToFile(playerInfo, numPlayers);
		}
		
	}
	}