I still think you should get a one-pile version working first, with no randomness. You are wrestling with manipulation of lists and random numbers, but you could create a version that has none of that: just a loop to prompt for a number and subtract and print it.