Your discard pile checking is broken
Wow! You're right! Thanks for pointing that out, I'll have it fixed with the next release.