Fix cost calculation when validating sideboard

Fixes #128.