updating simulation to put array in queue