Card controller, state machine validation improvement
Card controller, DRY