Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
It might be too late if someone has already claimed this, but we do have a specific thread for this over in the dedicated TCG section: https://www.pokecommunity.com/threads/322342
I will now edit the code out of your post here and suggest that you post it there instead!