Modifying the open-source 2048 code

My first attempt! 2048 becomes 2040-state!