Finished grid.c system