If he's a bit more advanced, take a look at Screeps (https://screeps.com/). It's an online game that lets you write code in JavaScript to control a robot that battles other player robots. If the subscription fee or being online is an issue, there are similar games like RoboCode.
Steam has a category of programming games that you can browse as well: https://store.steampowered.com/tags/en/Programming/
Some people will recommend Zachtronics games (TIS-100, Shenzhen I/O, etc.) but I do not think they're particularly good for beginner programmers. The games are puzzles dressed up as coding and, while they are fun, have little to do with how real coding is done.
If the kid is a bit ahead of his age in math, I would consider something more abstract like a Python book Python Crash Course that gives you 3 projects to work through.
I have taught my 5 year old daughter the basics of coding with Scratch 3. I am in the process of building a course of parents. This has been great as it is visual and much easier for beginners to grasp.