add spawning locations forces big refactor
refactor syntax with rubocop