Grid spiral, part 1

Part 1 of solution to grid spiral problem, basic solution.