added shuffle algorithm to array and wired the shuffle link