Your desire to help people can not be described, thanks 🙂
Your code structure is clear, but not for me 😛
If you could look at this API
the game is in [‘stream’][‘channel’][‘game’]
I really can’t understand your code, I’m not programming completely 😉
If you can add this, just write changes and post it here, if you don’t have much time, don’t test it, I will do it 🙂