solution to problem of the week: spiral_grid