Coded general functionality, creates grid, colors grid, resets grid.