A port of the game 2048 (which is a clone of three's) in c++