An 2048 application implemented by C