Fixed bug in setChallengeState(Challenge,ChallengeState). Should work
now.