Fixed discards to cards transfer, replaced for loop with while loop, removing element 0 from discards and transferring to deck until only one element remains in discards