fix copy array, now copy by value and not by js default by reference, as operation shuffle changes the value