E-gravity theory as a Yang-Mills theory