closes #2711 by adding an option to let units spawn at the edge of the map