Cleaned up the grid code based on my improved understanding of Ruby over the past year; the grid constructor can now be passed a block to determine seed