Cody explores a glitch that lets you get a level 100 Pokémon before you challenge Brock. The glitch is performed using an escape glitch (via wild encounter) from a specific trainer in Viridian Forest. You can then battle a wild Pokémon, and upon re-entering Viridian Forest, you will battle whatever Pokémon is relevant to the special stat of the last Pokémon you battled. You can then utilize another glitch to get that Pokémon to level 100 instantly.
—YouTube.com