There are two possible explanations:
- Your computation of how many roads to remove is wrong.
- Your code for removing the roads is wrong.
So the next step you need to take is figure out which of the two it is.
After let repetition-number ...
, add:
print repetition-number
Is the value printed correct? If no, pursue path #1. If yes, pursue path #2. (And if still stuck, come back here and tell us which path you need help with.)