Audio problem: After James says that Team Rocket should capture Sylveon, the sound of Wobbuffet's Poké Ball opening can be heard, despite him already being out. (00:06:27)
Continuity mistake: In one shot during Randall's flashback, the stripes on his shoes disappear. (00:09:22)
Continuity mistake: Before Ash, his friends, and the kindergartners throw their balls into the air, one of Ash's gloves disappears. (00:11:33)
Continuity mistake: When Ash and Randall are about to attempt to break the pod Pikachu is in, Randall does not have his hat, but in the next shot, it appears. (00:17:27)
Answer: He is a good guy but just found himself in a bad situation when he worked for Lysander. He didn't want him to harm Ash and his Pokémon when he was trying to get the special bond between Ash and his Greninja to work. He does leave Lysander and go back to being a good person.