Fix payday

The pachinko algorithm was not covered by tests at all and turns out to have had a regression or two.