2048 in C (with ncurses)