C++ version Number Guessing Game