Finished spiral algorithm

Still need to check if it is sound though (hohoho punny pun)