Dovizioso loses out in exciting fight with Hayden