added function shuffle() and draw()