Marlins travel cross country and beat Giants 2-1