Started working on the spiral algorithm