Oooooh, it was that xD. Well it's all about optimizing space. For example I just want to have stored 6 Pokemon, and each time I change teams I get the ones stored, so it would fit with just 7 slots. If I have 6 Pokemon in my team and 6 stored I just have to store the first one of the team on that free slot, and then take from the storage the first and placing the Pokemon I placed on the 7th place on the 1st place of storage, isn't it??
Maybe it would be easy to make a recursive method to do all the process