Remove unused variable
Remove unnecessary ifs
Make hasCreatures a dictionary
Use toggle
Add makeUrls function