Initial logic to create the spiral