Adding java print 2d array in spiral order