The most important thing is that you press the green flag.
Credit to How to Code in 10 Easy Steps for giving me the idea for the script, and giving me the idea to use the repeat block to draw a town.