rewrite - added looping and 2 decks - needs simpler code