It was a great battle with Marc Marquez decided on the last lap.