NVDA addons

I’m new to programming. My only experience comes from an introductory python course and reading the NVDA add on development guide.

I’m trying to create an app module so that I can play the game ‘King of dragon pass’. At the moment I am just trying to get it to create a tone whenever the active window switches to the game, as in the example provided in the guide. (https://github.com/nvdaaddons/DevGuide/wiki/NVDA-Add-on-Development-Guide)

From what I understand the way to get this add-on to point to the game is just to name the .pi file the same as the game’s .exe file, which I have done. But I don’t hear any tones. I can get it to work for notepad but not for the game. Can anyone help me fix this issue so I can get started?