update Spiral.scala to catch negative numbers