public int actualgame (int randomnumber) {
		int guess = 0;
		int guesses = 0;
		System.out.print("Guess a number ");
		//guess = scanner.nextInt();
		guess = getIntFromUser();
		System.out.println();
		if (guess == randomnumber){
			guesses++;
			System.out.println("Lucky Guess!");
			return guesses;
		} else {
			do {
				guesses++;
				if (guess < randomnumber){
					System.out.print("Too low. Guess again ");
				} else if (guess > randomnumber) {
					System.out.print("Too high. Guess again ");
				}
				//guess = scanner.nextInt();
				guess = getIntFromUser();
				System.out.println();
			} while (guess != randomnumber);
		} 
		
		if (guess == randomnumber) {
			guesses++;
			System.out.println("Got it!");
		}
		return guesses;
	}