looping guess the number without the use of proper loop