C++ command-line implementation of 2048