To find free codes in the Beyblade game, head to the back of the castle. You don't go inside; instead, look around the back of the outside area, and that's where the codes are waiting.
It's a little out-of-the-way spot, but a bit of exploring behind the castle should reward you with what you're after.