Create 2048.c

A logic error is found in these places. Can you guess what it is?