Spiral Loop Given a number this function creates a n*n grid and fills it with numbers (from 1 to n^2) in a spiral fashion.