Two Dimensional Gravity as a modified Yang-Mills Theory