Maverick Viñales managed to take victory ahead of Johann Zarco and Dani Pedrosa while Valentino Rossi crashed on the final lap