Gui-less 2048 in C