Step 7: Debug the coin checker
>Open Level - 7 from the levels bar.
>Click Play and select level 7 to see what happens when you collect all the coins.
You can't win this level! There must be a bug with the coin checking.
>Right-click on the chicken and select Edit Script.
Find the part of the script that should check how many coins have been collected. Can you see what's wrong? The script should be checking if the number of coins collected equals 5. How would you fix this?
If you get stuck you can go back to step 1 to see how we programmed this properly. Remember that you'll need these blocks:
- `number coins collected` (from Variables)
- `_=_` (from Operators)
- `5` (starts as `0` from Operators)
>To test it out, click Play and select Level 7.
Once you've debugged this chicken script you can move on to the next step.