Simple number guessing game in C++