I have a collection of mini-games written in PHP and plain HTML/JS that already load and play correctly. The first thing I need is a clean, reliable “Watch Ad” flow that serves rewarded video ads: after the ad finishes, the player must immediately receive the in-game reward I specify (the trigger is already in place; it just needs wiring to the ad callback). Right after that, I want the Restart button to reset all current-session progress and reload the game from the very beginning—no lingering variables or cached scores. The logic sits in a simple PHP session, so clearing and re-initialising those values should do the trick. Finally, I’d like you to spin up a lightweight index page that lists every game available in its own tile. Clicking any tile opens the chosen game in its existing URL; no redesign, just a neat launcher so players can browse from one place. Please keep the core codebase intact, work directly in PHP/HTML/JS (no frameworks), and comment any changes so I can follow along later. If this sounds straightforward to you, let’s get it done. And Leaderboard Where Games wise score save and Prize automatically Calculate and Distribute .