Guessing number game written in java language