I almost thought I would finish, but I used
where I should use
in the script, which caused the error.
This is so close that I will probably get a run that gets to 100 flags tomorrow.
## My script is based on a framework named pvz.py, for more information of this pvz.py see https://pvz.lmintlcx.com/ and https://www.youtube.com/channel/UCJUh2i-DhcWdornjlG8OIxA/videos