a simple java class that lets you guess a number