assigns correct values to dopa variables. The script is in running order but the dopa system does produce the expect resuts. Also changes shuffle function to accommodate an undefined number of arrays.