Fix a syntax error in the discard/hand check