[my2048] refactor class my2048 to get a more concise source code.