Clean up rankWithCards