Reworked the map coloring example in the tutorial to use foldM.