created a perfect shuffle method