Why are you changing the count by 5, it should be by one. Also, after you get the card and modify the count variable, before you return the result, you should check the number in the variable and return based on that. Effects are cumulative, you don’t return based only on the current card, but based on all the previous ones as well. The previous ones + the current one are captured in the count variable, so you need to revise your logic.