Refactoring the source code of the game King Survival