Implements the game 2048 in the terminal via C++