Fix Sleep Talk + Mimic glitch

No idea why the gen variable was always set to return the max gen, but that forces older gens to have newer gen mechanics.

I left "lastMoveSlot" as the default value, just to safeguard against an error where the following check can't locate Mimic for whatever reason.