BuildGrid

Added a function to draw the grid