-Added a debug function for filling a grid.