Practice NIM solver using C++