Mariners beat Royals 6-4