debugged shuffle and get_card methods