add function generate_grid and use this generated grid
add comment
add comment and use main
add resource to generate map