This program seems to be simply broken. upon loading the rom, it shows for example roxanne as having a geodude, tentacruel, and claydol. pokemon and moves inputed are shuffled around apparently at random when saving.
Ah i get it now. Upon saving the pokemon you were working on shifts left 1-so...