Minigame backend code completed.