Spiral ordering example now working properly