Adjusted the deck and discard to be treated as stacks.

Pop and push methods are more efficient than the shift and unshift
methods I was using previously.