Fixes validating for generated deck

Validates maximum number for the generated deck

Author: dbtrue