Cards snap a three-game losing streak