Number guessing game in C++