private static void startRace(String[] horsesInRace, Scanner userInput, String[][] playerInfo) {
		int temp = 0;
		boolean weather = false;
		while(!weather){
		 int track = ((int)(Math.random()*5)+1);
		 if( track == 1){
			 System.out.println(" ");
		System.out.println(" It is sunny outside,  all is normal");
		weather = true;
		try {
			Thread.sleep(1500);
		} catch (InterruptedException ie) {
		}
		 }else if( track == 2){
			 System.out.println(" ");
			 System.out.println(" It is raining outside and the track is slippery, speed of all horses -1");
			 weather = true;
			 try {
					Thread.sleep(1500);
				} catch (InterruptedException ie) {
				}
		 }else if( track == 3){
			 System.out.println(" ");
			 System.out.println(" There is a storm outside! all of the horses are scared, speed of all horses +2");
			 weather = true;
			 try {
					Thread.sleep(1500);
				} catch (InterruptedException ie) {
				}
		 }else if( track == 4){
			 System.out.println(" ");
			 System.out.println(" It's quite cold out there! snow covers the ground , speed of all horses -2");
			 weather = true;
			 try {
					Thread.sleep(1500);
				} catch (InterruptedException ie) {
				}
		 }else if( track == 5){
			 System.out.println(" ");
			 System.out.println(" A strong crosswind blows against the horses, speed of all horses -1");
			 weather = true;
			 try {
					Thread.sleep(1500);
				} catch (InterruptedException ie) {
				}
				}
		
		
		
		
		
		
		System.out.println("The Race will start in:  ");
		try {
			Thread.sleep(500);
		} catch (InterruptedException ie) {
		}
		System.out.println("");
		System.out.println("");
		System.out.println("3");
		try {
			Thread.sleep(500);
		} catch (InterruptedException ie) {
		}
		System.out.println("2");
		try {
			Thread.sleep(500);
		} catch (InterruptedException ie) {
		}

		System.out.println("1");
		try {
			Thread.sleep(1500);
		} catch (InterruptedException ie) {
		}

		
		String[] movement = { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" };
		String Winner = null;
		String[][] raceData = new String[horsesInRace.length][101];
		for (int i = 0; i <= horsesInRace.length - 1; i++) {
			temp = Integer.parseInt(movement[i]);
			raceData[i][temp] = horsesInRace[i];
			System.out.println("____________________________________________________________________________________________________");
			System.out.println(((i + 1)));
			System.out.println("____________________________________________________________________________________________________");

		}
		try {
			Thread.sleep(1500);
		} catch (InterruptedException ie) {

		}
		
		boolean raceIsDone = false;
		while (!raceIsDone) {
			for (int i = 0; i <= horsesInRace.length - 1; i++) {
				if(track ==1){
				temp = ((int) (Math.random() * 5) + 1);	
				}else if( track == 2){
					 temp = ((int) (Math.random() * 4) + 1);
				}else if( track == 3){
					 temp = ((int) (Math.random() * 7) + 1);
				 }else if( track == 4){
					 temp = ((int) (Math.random() * 3) + 1);
				 }else if( track == 5){
					 temp = ((int) (Math.random() * 4) + 1);
				 }
					 
				int tempMovement = Integer.parseInt(movement[i]);
				tempMovement += temp;
				if (tempMovement >= 100) {
					tempMovement = 100;
					raceIsDone = true;
					Winner = horsesInRace[i];
					System.out.println(" Congratulations! " + Winner + " won the race!");
					for(int j = 0; j < playerInfo.length; j++){
						if(playerInfo[j][HORSE].equals(Winner)){
					
					int tempWallet = Integer.parseInt(playerInfo[j][WALLET]);
					int bet =  Integer.parseInt(playerInfo[j ][BET]);
					tempWallet += bet *2; 
					playerInfo[j ][WALLET] = Integer.toString(tempWallet);
					System.out.println(playerInfo[j][NAME] + " won $" + playerInfo[j][BET]) ;
						}
					
						
					}

				} else {
					
					movement[i] = Integer.toString(tempMovement);
					raceData[i][tempMovement] = raceData[i][0];
					System.out.println("____________________________________________________________________________________________________");
					for (int j = 0; j <= tempMovement; j++) {
						System.out.print(' ');
					}
					System.out.println(((i + 1)));
					System.out.println("____________________________________________________________________________________________________");
					
				
					

				}
			}
			try {
				Thread.sleep(200);
			} catch (InterruptedException ie) {
				}
			System.out.println("");
			System.out.println("");
			System.out.println("");
			System.out.println("");
			

			}
		 }
		}