Royals beat Tigers in the 9th for 3-2 victory