now discarding cards by index instead of typing resource kind