Begin adding basic grid generation logic