public static int playGame(int upperBound, Scanner kb) {
		int number = randomInt(1, upperBound);
		int guess;
		int numGuesses = 0;
		do {
			System.out.println("What do you think my number is?");
			guess = kb.nextInt();
			kb.nextLine();
			if(guess > 0) {
				numGuesses++;
				if(guess > number) {
					System.out.print("My number is lower! ");
				} else if(guess < number) {
					System.out.print("My number is higher! ");
				} else if(guess == number) {
					System.out.println("You got it! My number is " + number + "! It took you " + numGuesses + " guesses.");
				}
			}
		} while(guess > 0 && guess != number);
		if(guess <= 0) {
			System.out.println("You gave up in " + numGuesses + " guesses.");
		}
		return numGuesses;
	}