added the 2dgrid class
drawing the grid