Finished the initialization and draw function of the grid class