protected void CloneArrays() { // dereference original arrays with new copies Moves = (int[])Moves?.Clone(); Relearn = (int[])Relearn.Clone(); IVs = (int[])IVs.Clone(); Contest = (int[])Contest.Clone(); }