Generating map and coloring.