Java implementation guessing number game