ok i just figured out the code, its in your party not the boxes, choose a pokemon and select switch, switch it with another pokemon then exit the screen. When you look back there will be two copies of the first pokemon you chose to switch but the second pokemon will be deleted