Refactored card removal and actions when board is cleared.