public static int actualgame(int[] randlowhigh) {
		int guess = 0, guesses = 0;
		int [] currentlohi = new int [2];
		currentlohi[0] = randlowhigh[1] - 1;
		currentlohi[1] = randlowhigh[2] + 1;
		System.out.print("Guess a number ");
		guess = getInt();
		System.out.println();
		if (guess == randlowhigh[0]) {
			guesses++;
			System.out.println("Lucky Guess!");
			System.out.println();
			return guesses;
		} else {
			do {
				if (guess > currentlohi[0] && guess < currentlohi[1]){
					if (guess < randlowhigh[0]) {
						System.out.print("Too low. Guess again ");
						currentlohi[0] = guess;
						System.out.println();
					} else if (guess > randlowhigh[0]) {
						System.out.print("Too high. Guess again ");
						currentlohi[1] = guess;
						System.out.println();
					}
					guesses++;
					
				} else if (guess < randlowhigh[1] || guess > randlowhigh[2]){
					System.out.println("Guess was out of original range. Guess again.");
				} else if (guess <= currentlohi[0] && currentlohi[0] != randlowhigh [1]){
					System.out.println("I've already told you the number is greater than " 
							+ currentlohi[0]);
				} else if (guess >= currentlohi[1] && currentlohi[1] != randlowhigh [2]){
					System.out.println("I've already told you the number is less than " 
							+ currentlohi[1]);
				}
				
				guess = getInt();
				
			} while (guess != randlowhigh[0]);
		}

		if (guess == randlowhigh[0]) {
			guesses++;
			System.out.println("Got it!");
		}
		return guesses;
	}